diff --git a/release/.openapi-generator/FILES b/release/.openapi-generator/FILES index 24a47bb..710c07e 100644 --- a/release/.openapi-generator/FILES +++ b/release/.openapi-generator/FILES @@ -6,6 +6,9 @@ api/openapi.yaml api_access_policies.go api_acs_file.go api_acs_rpm.go +api_api_pypi.go +api_api_pypi_legacy.go +api_api_pypi_simple.go api_artifacts.go api_content.go api_content_advisories.go @@ -68,10 +71,7 @@ api_publications_file.go api_publications_gem.go api_publications_pypi.go api_publications_rpm.go -api_pypi.go -api_pypi_legacy.go api_pypi_metadata.go -api_pypi_simple.go api_remotes.go api_remotes_file.go api_remotes_gem.go @@ -117,6 +117,9 @@ docs/AcsFileAPI.md docs/AcsRpmAPI.md docs/AddonResponse.md docs/ApiAppStatusResponse.md +docs/ApiPypiAPI.md +docs/ApiPypiLegacyAPI.md +docs/ApiPypiSimpleAPI.md docs/Artifact.md docs/ArtifactDistributionResponse.md docs/ArtifactResponse.md @@ -426,10 +429,7 @@ docs/PulpImportCheckResponse.md docs/PulpImporter.md docs/PulpImporterResponse.md docs/Purge.md -docs/PypiAPI.md -docs/PypiLegacyAPI.md docs/PypiMetadataAPI.md -docs/PypiSimpleAPI.md docs/PythonBanderRemote.md docs/PythonPythonDistribution.md docs/PythonPythonDistributionResponse.md @@ -902,6 +902,9 @@ response.go test/api_access_policies_test.go test/api_acs_file_test.go test/api_acs_rpm_test.go +test/api_api_pypi_legacy_test.go +test/api_api_pypi_simple_test.go +test/api_api_pypi_test.go test/api_artifacts_test.go test/api_content_advisories_test.go test/api_content_commits_test.go @@ -964,10 +967,7 @@ test/api_publications_gem_test.go test/api_publications_pypi_test.go test/api_publications_rpm_test.go test/api_publications_test.go -test/api_pypi_legacy_test.go test/api_pypi_metadata_test.go -test/api_pypi_simple_test.go -test/api_pypi_test.go test/api_remotes_file_test.go test/api_remotes_gem_test.go test/api_remotes_ostree_test.go diff --git a/release/README.md b/release/README.md index c448514..8edc6c7 100644 --- a/release/README.md +++ b/release/README.md @@ -6,7 +6,7 @@ Fetch, Upload, Organize, and Distribute Software Packages This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: v3 -- Package version: de24b382d968bd5ed3a4252b36e475a3824b4e1b7a98d596b8e3294aa65e495a +- Package version: b96da963e282496dea8346bd425a7ea332b2a8087e8639db952b3ae5d4b58e83 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://pulpproject.org](https://pulpproject.org) @@ -106,6 +106,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/ | Remove a role *AcsRpmAPI* | [**AcsRpmRpmUpdate**](docs/AcsRpmAPI.md#acsrpmrpmupdate) | **Put** /{rpm_rpm_alternate_content_source_href} | Update a rpm alternate content source +*ApiPypiAPI* | [**ApiPulpPypiRead**](docs/ApiPypiAPI.md#apipulppypiread) | **Get** /api/pulp/pypi/{pulp_domain}/{path}/ | Get index summary +*ApiPypiLegacyAPI* | [**ApiPulpPypiLegacyCreate**](docs/ApiPypiLegacyAPI.md#apipulppypilegacycreate) | **Post** /api/pulp/pypi/{pulp_domain}/{path}/legacy/ | Upload a package +*ApiPypiSimpleAPI* | [**ApiPulpPypiSimpleCreate**](docs/ApiPypiSimpleAPI.md#apipulppypisimplecreate) | **Post** /api/pulp/pypi/{pulp_domain}/{path}/simple/ | Upload a package +*ApiPypiSimpleAPI* | [**ApiPulpPypiSimpleRead**](docs/ApiPypiSimpleAPI.md#apipulppypisimpleread) | **Get** /api/pulp/pypi/{pulp_domain}/{path}/simple/ | Get index simple page +*ApiPypiSimpleAPI* | [**PypiSimplePackageRead**](docs/ApiPypiSimpleAPI.md#pypisimplepackageread) | **Get** /api/pulp/pypi/{pulp_domain}/{path}/simple/{package}/ | Get package simple page *ArtifactsAPI* | [**ArtifactsCreate**](docs/ArtifactsAPI.md#artifactscreate) | **Post** /api/pulp/{pulp_domain}/api/v3/artifacts/ | Create an artifact *ArtifactsAPI* | [**ArtifactsDelete**](docs/ArtifactsAPI.md#artifactsdelete) | **Delete** /{artifact_href} | Delete an artifact *ArtifactsAPI* | [**ArtifactsList**](docs/ArtifactsAPI.md#artifactslist) | **Get** /api/pulp/{pulp_domain}/api/v3/artifacts/ | List artifacts @@ -388,12 +393,7 @@ Class | Method | HTTP request | Description *PublicationsRpmAPI* | [**PublicationsRpmRpmMyPermissions**](docs/PublicationsRpmAPI.md#publicationsrpmrpmmypermissions) | **Get** /{rpm_rpm_publication_href}my_permissions/ | List user permissions *PublicationsRpmAPI* | [**PublicationsRpmRpmRead**](docs/PublicationsRpmAPI.md#publicationsrpmrpmread) | **Get** /{rpm_rpm_publication_href} | Inspect a rpm publication *PublicationsRpmAPI* | [**PublicationsRpmRpmRemoveRole**](docs/PublicationsRpmAPI.md#publicationsrpmrpmremoverole) | **Post** /{rpm_rpm_publication_href}remove_role/ | Remove a role -*PypiAPI* | [**PypiRead**](docs/PypiAPI.md#pypiread) | **Get** /pypi/{pulp_domain}/{path}/ | Get index summary -*PypiLegacyAPI* | [**PypiLegacyCreate**](docs/PypiLegacyAPI.md#pypilegacycreate) | **Post** /pypi/{pulp_domain}/{path}/legacy/ | Upload a package -*PypiMetadataAPI* | [**PypiPypiRead**](docs/PypiMetadataAPI.md#pypipypiread) | **Get** /pypi/{pulp_domain}/{path}/pypi/{meta}/ | Get package metadata -*PypiSimpleAPI* | [**PypiSimpleCreate**](docs/PypiSimpleAPI.md#pypisimplecreate) | **Post** /pypi/{pulp_domain}/{path}/simple/ | Upload a package -*PypiSimpleAPI* | [**PypiSimplePackageRead**](docs/PypiSimpleAPI.md#pypisimplepackageread) | **Get** /pypi/{pulp_domain}/{path}/simple/{package}/ | Get package simple page -*PypiSimpleAPI* | [**PypiSimpleRead**](docs/PypiSimpleAPI.md#pypisimpleread) | **Get** /pypi/{pulp_domain}/{path}/simple/ | Get index simple page +*PypiMetadataAPI* | [**ApiPulpPypiPypiRead**](docs/PypiMetadataAPI.md#apipulppypipypiread) | **Get** /api/pulp/pypi/{pulp_domain}/{path}/pypi/{meta}/ | Get package metadata *RemotesAPI* | [**RemotesList**](docs/RemotesAPI.md#remoteslist) | **Get** /api/pulp/{pulp_domain}/api/v3/remotes/ | List remotes *RemotesFileAPI* | [**RemotesFileFileAddRole**](docs/RemotesFileAPI.md#remotesfilefileaddrole) | **Post** /{file_file_remote_href}add_role/ | Add a role *RemotesFileAPI* | [**RemotesFileFileCreate**](docs/RemotesFileAPI.md#remotesfilefilecreate) | **Post** /api/pulp/{pulp_domain}/api/v3/remotes/file/file/ | Create a file remote diff --git a/release/api/openapi.yaml b/release/api/openapi.yaml index e63fce2..ab79d7c 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -39142,10 +39142,10 @@ paths: summary: Inspect status of Pulp tags: - Status - /pypi/{pulp_domain}/{path}/: + /api/pulp/pypi/{pulp_domain}/{path}/: get: description: Gets package summary stats of index. - operationId: pypi_read + operationId: api_pulp_pypi_read parameters: - explode: false in: path @@ -39194,12 +39194,12 @@ paths: - cookieAuth: [] summary: Get index summary tags: - - Pypi - /pypi/{pulp_domain}/{path}/legacy/: + - "Api: Pypi" + /api/pulp/pypi/{pulp_domain}/{path}/legacy/: post: description: Upload package to the index.This is the endpoint that tools like Twine and Poetry use for their upload commands. - operationId: pypi_legacy_create + operationId: api_pulp_pypi_legacy_create parameters: - explode: false in: path @@ -39237,12 +39237,12 @@ paths: - cookieAuth: [] summary: Upload a package tags: - - "Pypi: Legacy" - /pypi/{pulp_domain}/{path}/pypi/{meta}/: + - "Api: Pypi Legacy" + /api/pulp/pypi/{pulp_domain}/{path}/pypi/{meta}/: get: description: "Retrieves the package's core-metadata specified byhttps://packaging.python.org/specifications/core-metadata/.`meta`\ \ must be a path in form of `{package}/json/` or `{package}/{version}/json/`" - operationId: pypi_pypi_read + operationId: api_pulp_pypi_pypi_read parameters: - explode: false in: path @@ -39299,10 +39299,10 @@ paths: summary: Get package metadata tags: - "Pypi: Metadata" - /pypi/{pulp_domain}/{path}/simple/: + /api/pulp/pypi/{pulp_domain}/{path}/simple/: get: description: Gets the simple api html page for the index. - operationId: pypi_simple_read + operationId: api_pulp_pypi_simple_read parameters: - explode: false in: path @@ -39347,13 +39347,13 @@ paths: - cookieAuth: [] summary: Get index simple page tags: - - "Pypi: Simple" + - "Api: Pypi Simple" post: description: "Upload package to the index.This endpoint has the same functionality\ \ as the upload endpoint at the `/legacy` url of theindex. This is provided\ \ for convenience for users who want a single index url for all theirPython\ \ tools. (pip, twine, poetry, pipenv, ...)" - operationId: pypi_simple_create + operationId: api_pulp_pypi_simple_create parameters: - explode: false in: path @@ -39391,8 +39391,8 @@ paths: - cookieAuth: [] summary: Upload a package tags: - - "Pypi: Simple" - /pypi/{pulp_domain}/{path}/simple/{package}/: + - "Api: Pypi Simple" + /api/pulp/pypi/{pulp_domain}/{path}/simple/{package}/: get: description: Retrieves the simple api html page for a package. operationId: pypi_simple_package_read @@ -39447,7 +39447,7 @@ paths: - cookieAuth: [] summary: Get package simple page tags: - - "Pypi: Simple" + - "Api: Pypi Simple" components: schemas: AccessPolicy: @@ -39670,9 +39670,9 @@ components: description: A serializer for ArtifactDistribution. example: pulp_href: https://openapi-generator.tech - hidden: false pulp_labels: key: pulp_labels + hidden: false name: name base_url: base_url no_content_change_since: no_content_change_since @@ -39682,41 +39682,40 @@ components: prn: prn content_guard: https://openapi-generator.tech properties: - prn: - description: The Pulp Resource Name (PRN). - readOnly: true - type: string pulp_href: format: uri readOnly: true type: string - name: - description: "A unique name. Ex, `rawhide` and `stable`." + 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 hidden: default: false description: Whether this distribution should be shown in the content app. type: boolean + name: + description: "A unique name. Ex, `rawhide` and `stable`." + type: string + prn: + description: The Pulp Resource Name (PRN). + readOnly: true + type: string base_url: description: The URL for accessing the publication as defined by this distribution. readOnly: true type: string - no_content_change_since: - description: "Timestamp since when the distributed content served by this\ - \ distribution has not changed. If equals to `null`, no guarantee is provided\ - \ about content changes." + pulp_created: + description: Timestamp of creation. + format: date-time readOnly: true type: string - content_guard: - description: An optional content-guard. - format: uri - nullable: true - type: string - pulp_labels: - additionalProperties: - nullable: true - type: string - type: object pulp_last_updated: description: "Timestamp of the last time this resource was updated. Note:\ \ for immutable resources - like content, repository versions, and publication\ @@ -39724,14 +39723,15 @@ components: format: date-time 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") + content_guard: + description: An optional content-guard. + format: uri + nullable: true type: string - pulp_created: - description: Timestamp of creation. - format: date-time + no_content_change_since: + description: "Timestamp since when the distributed content served by this\ + \ distribution has not changed. If equals to `null`, no guarantee is provided\ + \ about content changes." readOnly: true type: string required: @@ -42309,9 +42309,9 @@ components: count: 123 results: - pulp_href: https://openapi-generator.tech - hidden: false pulp_labels: key: pulp_labels + hidden: false name: name base_url: base_url no_content_change_since: no_content_change_since @@ -42321,9 +42321,9 @@ components: prn: prn content_guard: https://openapi-generator.tech - pulp_href: https://openapi-generator.tech - hidden: false pulp_labels: key: pulp_labels + hidden: false name: name base_url: base_url no_content_change_since: no_content_change_since diff --git a/release/api_pypi.go b/release/api_api_pypi.go similarity index 81% rename from release/api_pypi.go rename to release/api_api_pypi.go index 61728eb..9d07b9d 100644 --- a/release/api_pypi.go +++ b/release/api_api_pypi.go @@ -22,12 +22,12 @@ import ( ) -// PypiAPIService PypiAPI service -type PypiAPIService service +// ApiPypiAPIService ApiPypiAPI service +type ApiPypiAPIService service -type PypiAPIPypiReadRequest struct { +type ApiPypiAPIApiPulpPypiReadRequest struct { ctx context.Context - ApiService *PypiAPIService + ApiService *ApiPypiAPIService path string pulpDomain string fields *[]string @@ -35,33 +35,33 @@ type PypiAPIPypiReadRequest struct { } // A list of fields to include in the response. -func (r PypiAPIPypiReadRequest) Fields(fields []string) PypiAPIPypiReadRequest { +func (r ApiPypiAPIApiPulpPypiReadRequest) Fields(fields []string) ApiPypiAPIApiPulpPypiReadRequest { r.fields = &fields return r } // A list of fields to exclude from the response. -func (r PypiAPIPypiReadRequest) ExcludeFields(excludeFields []string) PypiAPIPypiReadRequest { +func (r ApiPypiAPIApiPulpPypiReadRequest) ExcludeFields(excludeFields []string) ApiPypiAPIApiPulpPypiReadRequest { r.excludeFields = &excludeFields return r } -func (r PypiAPIPypiReadRequest) Execute() (*SummaryResponse, *http.Response, error) { - return r.ApiService.PypiReadExecute(r) +func (r ApiPypiAPIApiPulpPypiReadRequest) Execute() (*SummaryResponse, *http.Response, error) { + return r.ApiService.ApiPulpPypiReadExecute(r) } /* -PypiRead Get index summary +ApiPulpPypiRead Get index summary Gets package summary stats of index. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param path @param pulpDomain - @return PypiAPIPypiReadRequest + @return ApiPypiAPIApiPulpPypiReadRequest */ -func (a *PypiAPIService) PypiRead(ctx context.Context, path string, pulpDomain string) PypiAPIPypiReadRequest { - return PypiAPIPypiReadRequest{ +func (a *ApiPypiAPIService) ApiPulpPypiRead(ctx context.Context, path string, pulpDomain string) ApiPypiAPIApiPulpPypiReadRequest { + return ApiPypiAPIApiPulpPypiReadRequest{ ApiService: a, ctx: ctx, path: path, @@ -71,7 +71,7 @@ func (a *PypiAPIService) PypiRead(ctx context.Context, path string, pulpDomain s // Execute executes the request // @return SummaryResponse -func (a *PypiAPIService) PypiReadExecute(r PypiAPIPypiReadRequest) (*SummaryResponse, *http.Response, error) { +func (a *ApiPypiAPIService) ApiPulpPypiReadExecute(r ApiPypiAPIApiPulpPypiReadRequest) (*SummaryResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -79,12 +79,12 @@ func (a *PypiAPIService) PypiReadExecute(r PypiAPIPypiReadRequest) (*SummaryResp localVarReturnValue *SummaryResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PypiAPIService.PypiRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiPypiAPIService.ApiPulpPypiRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/pypi/{pulp_domain}/{path}/" + localVarPath := localBasePath + "/api/pulp/pypi/{pulp_domain}/{path}/" localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) diff --git a/release/api_pypi_legacy.go b/release/api_api_pypi_legacy.go similarity index 78% rename from release/api_pypi_legacy.go rename to release/api_api_pypi_legacy.go index ca310b4..e9dc4d4 100644 --- a/release/api_pypi_legacy.go +++ b/release/api_api_pypi_legacy.go @@ -22,12 +22,12 @@ import ( ) -// PypiLegacyAPIService PypiLegacyAPI service -type PypiLegacyAPIService service +// ApiPypiLegacyAPIService ApiPypiLegacyAPI service +type ApiPypiLegacyAPIService service -type PypiLegacyAPIPypiLegacyCreateRequest struct { +type ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest struct { ctx context.Context - ApiService *PypiLegacyAPIService + ApiService *ApiPypiLegacyAPIService path string pulpDomain string content *os.File @@ -36,39 +36,39 @@ type PypiLegacyAPIPypiLegacyCreateRequest struct { } // A Python package release file to upload to the index. -func (r PypiLegacyAPIPypiLegacyCreateRequest) Content(content *os.File) PypiLegacyAPIPypiLegacyCreateRequest { +func (r ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest) Content(content *os.File) ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest { r.content = content return r } // SHA256 of package to validate upload integrity. -func (r PypiLegacyAPIPypiLegacyCreateRequest) Sha256Digest(sha256Digest string) PypiLegacyAPIPypiLegacyCreateRequest { +func (r ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest) Sha256Digest(sha256Digest string) ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest { r.sha256Digest = &sha256Digest return r } // Defaults to `file_upload`, don't change it or request will fail! -func (r PypiLegacyAPIPypiLegacyCreateRequest) Action(action string) PypiLegacyAPIPypiLegacyCreateRequest { +func (r ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest) Action(action string) ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest { r.action = &action return r } -func (r PypiLegacyAPIPypiLegacyCreateRequest) Execute() (*PackageUploadTaskResponse, *http.Response, error) { - return r.ApiService.PypiLegacyCreateExecute(r) +func (r ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest) Execute() (*PackageUploadTaskResponse, *http.Response, error) { + return r.ApiService.ApiPulpPypiLegacyCreateExecute(r) } /* -PypiLegacyCreate Upload a package +ApiPulpPypiLegacyCreate Upload a package Upload package to the index.This is the endpoint that tools like Twine and Poetry use for their upload commands. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param path @param pulpDomain - @return PypiLegacyAPIPypiLegacyCreateRequest + @return ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest */ -func (a *PypiLegacyAPIService) PypiLegacyCreate(ctx context.Context, path string, pulpDomain string) PypiLegacyAPIPypiLegacyCreateRequest { - return PypiLegacyAPIPypiLegacyCreateRequest{ +func (a *ApiPypiLegacyAPIService) ApiPulpPypiLegacyCreate(ctx context.Context, path string, pulpDomain string) ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest { + return ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest{ ApiService: a, ctx: ctx, path: path, @@ -78,7 +78,7 @@ func (a *PypiLegacyAPIService) PypiLegacyCreate(ctx context.Context, path string // Execute executes the request // @return PackageUploadTaskResponse -func (a *PypiLegacyAPIService) PypiLegacyCreateExecute(r PypiLegacyAPIPypiLegacyCreateRequest) (*PackageUploadTaskResponse, *http.Response, error) { +func (a *ApiPypiLegacyAPIService) ApiPulpPypiLegacyCreateExecute(r ApiPypiLegacyAPIApiPulpPypiLegacyCreateRequest) (*PackageUploadTaskResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -86,12 +86,12 @@ func (a *PypiLegacyAPIService) PypiLegacyCreateExecute(r PypiLegacyAPIPypiLegacy localVarReturnValue *PackageUploadTaskResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PypiLegacyAPIService.PypiLegacyCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiPypiLegacyAPIService.ApiPulpPypiLegacyCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/pypi/{pulp_domain}/{path}/legacy/" + localVarPath := localBasePath + "/api/pulp/pypi/{pulp_domain}/{path}/legacy/" localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) diff --git a/release/api_pypi_simple.go b/release/api_api_pypi_simple.go similarity index 78% rename from release/api_pypi_simple.go rename to release/api_api_pypi_simple.go index 7056712..e11a4a7 100644 --- a/release/api_pypi_simple.go +++ b/release/api_api_pypi_simple.go @@ -23,12 +23,12 @@ import ( ) -// PypiSimpleAPIService PypiSimpleAPI service -type PypiSimpleAPIService service +// ApiPypiSimpleAPIService ApiPypiSimpleAPI service +type ApiPypiSimpleAPIService service -type PypiSimpleAPIPypiSimpleCreateRequest struct { +type ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest struct { ctx context.Context - ApiService *PypiSimpleAPIService + ApiService *ApiPypiSimpleAPIService path string pulpDomain string content *os.File @@ -37,39 +37,39 @@ type PypiSimpleAPIPypiSimpleCreateRequest struct { } // A Python package release file to upload to the index. -func (r PypiSimpleAPIPypiSimpleCreateRequest) Content(content *os.File) PypiSimpleAPIPypiSimpleCreateRequest { +func (r ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest) Content(content *os.File) ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest { r.content = content return r } // SHA256 of package to validate upload integrity. -func (r PypiSimpleAPIPypiSimpleCreateRequest) Sha256Digest(sha256Digest string) PypiSimpleAPIPypiSimpleCreateRequest { +func (r ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest) Sha256Digest(sha256Digest string) ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest { r.sha256Digest = &sha256Digest return r } // Defaults to `file_upload`, don't change it or request will fail! -func (r PypiSimpleAPIPypiSimpleCreateRequest) Action(action string) PypiSimpleAPIPypiSimpleCreateRequest { +func (r ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest) Action(action string) ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest { r.action = &action return r } -func (r PypiSimpleAPIPypiSimpleCreateRequest) Execute() (*PackageUploadTaskResponse, *http.Response, error) { - return r.ApiService.PypiSimpleCreateExecute(r) +func (r ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest) Execute() (*PackageUploadTaskResponse, *http.Response, error) { + return r.ApiService.ApiPulpPypiSimpleCreateExecute(r) } /* -PypiSimpleCreate Upload a package +ApiPulpPypiSimpleCreate Upload a package Upload package to the index.This endpoint has the same functionality as the upload endpoint at the `/legacy` url of theindex. This is provided for convenience for users who want a single index url for all theirPython tools. (pip, twine, poetry, pipenv, ...) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param path @param pulpDomain - @return PypiSimpleAPIPypiSimpleCreateRequest + @return ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest */ -func (a *PypiSimpleAPIService) PypiSimpleCreate(ctx context.Context, path string, pulpDomain string) PypiSimpleAPIPypiSimpleCreateRequest { - return PypiSimpleAPIPypiSimpleCreateRequest{ +func (a *ApiPypiSimpleAPIService) ApiPulpPypiSimpleCreate(ctx context.Context, path string, pulpDomain string) ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest { + return ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest{ ApiService: a, ctx: ctx, path: path, @@ -79,7 +79,7 @@ func (a *PypiSimpleAPIService) PypiSimpleCreate(ctx context.Context, path string // Execute executes the request // @return PackageUploadTaskResponse -func (a *PypiSimpleAPIService) PypiSimpleCreateExecute(r PypiSimpleAPIPypiSimpleCreateRequest) (*PackageUploadTaskResponse, *http.Response, error) { +func (a *ApiPypiSimpleAPIService) ApiPulpPypiSimpleCreateExecute(r ApiPypiSimpleAPIApiPulpPypiSimpleCreateRequest) (*PackageUploadTaskResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -87,12 +87,12 @@ func (a *PypiSimpleAPIService) PypiSimpleCreateExecute(r PypiSimpleAPIPypiSimple localVarReturnValue *PackageUploadTaskResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PypiSimpleAPIService.PypiSimpleCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiPypiSimpleAPIService.ApiPulpPypiSimpleCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/pypi/{pulp_domain}/{path}/simple/" + localVarPath := localBasePath + "/api/pulp/pypi/{pulp_domain}/{path}/simple/" localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) @@ -190,10 +190,9 @@ func (a *PypiSimpleAPIService) PypiSimpleCreateExecute(r PypiSimpleAPIPypiSimple return localVarReturnValue, localVarHTTPResponse, nil } -type PypiSimpleAPIPypiSimplePackageReadRequest struct { +type ApiPypiSimpleAPIApiPulpPypiSimpleReadRequest struct { ctx context.Context - ApiService *PypiSimpleAPIService - package_ string + ApiService *ApiPypiSimpleAPIService path string pulpDomain string fields *[]string @@ -201,59 +200,54 @@ type PypiSimpleAPIPypiSimplePackageReadRequest struct { } // A list of fields to include in the response. -func (r PypiSimpleAPIPypiSimplePackageReadRequest) Fields(fields []string) PypiSimpleAPIPypiSimplePackageReadRequest { +func (r ApiPypiSimpleAPIApiPulpPypiSimpleReadRequest) Fields(fields []string) ApiPypiSimpleAPIApiPulpPypiSimpleReadRequest { r.fields = &fields return r } // A list of fields to exclude from the response. -func (r PypiSimpleAPIPypiSimplePackageReadRequest) ExcludeFields(excludeFields []string) PypiSimpleAPIPypiSimplePackageReadRequest { +func (r ApiPypiSimpleAPIApiPulpPypiSimpleReadRequest) ExcludeFields(excludeFields []string) ApiPypiSimpleAPIApiPulpPypiSimpleReadRequest { r.excludeFields = &excludeFields return r } -func (r PypiSimpleAPIPypiSimplePackageReadRequest) Execute() (*http.Response, error) { - return r.ApiService.PypiSimplePackageReadExecute(r) +func (r ApiPypiSimpleAPIApiPulpPypiSimpleReadRequest) Execute() (*http.Response, error) { + return r.ApiService.ApiPulpPypiSimpleReadExecute(r) } /* -PypiSimplePackageRead Get package simple page +ApiPulpPypiSimpleRead Get index simple page -Retrieves the simple api html page for a package. +Gets the simple api html page for the index. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param package_ @param path @param pulpDomain - @return PypiSimpleAPIPypiSimplePackageReadRequest + @return ApiPypiSimpleAPIApiPulpPypiSimpleReadRequest */ -func (a *PypiSimpleAPIService) PypiSimplePackageRead(ctx context.Context, package_ string, path string, pulpDomain string) PypiSimpleAPIPypiSimplePackageReadRequest { - return PypiSimpleAPIPypiSimplePackageReadRequest{ +func (a *ApiPypiSimpleAPIService) ApiPulpPypiSimpleRead(ctx context.Context, path string, pulpDomain string) ApiPypiSimpleAPIApiPulpPypiSimpleReadRequest { + return ApiPypiSimpleAPIApiPulpPypiSimpleReadRequest{ ApiService: a, ctx: ctx, - package_: package_, path: path, pulpDomain: pulpDomain, } } // Execute executes the request -func (a *PypiSimpleAPIService) PypiSimplePackageReadExecute(r PypiSimpleAPIPypiSimplePackageReadRequest) (*http.Response, error) { +func (a *ApiPypiSimpleAPIService) ApiPulpPypiSimpleReadExecute(r ApiPypiSimpleAPIApiPulpPypiSimpleReadRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PypiSimpleAPIService.PypiSimplePackageRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiPypiSimpleAPIService.ApiPulpPypiSimpleRead") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/pypi/{pulp_domain}/{path}/simple/{package}/" - localVarPath = strings.Replace(localVarPath, "{"+"package"+"}", url.PathEscape(parameterValueToString(r.package_, "package_")), -1) - localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) - + localVarPath := localBasePath + "/api/pulp/pypi/{pulp_domain}/{path}/simple/" localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) @@ -331,9 +325,10 @@ func (a *PypiSimpleAPIService) PypiSimplePackageReadExecute(r PypiSimpleAPIPypiS return localVarHTTPResponse, nil } -type PypiSimpleAPIPypiSimpleReadRequest struct { +type ApiPypiSimpleAPIPypiSimplePackageReadRequest struct { ctx context.Context - ApiService *PypiSimpleAPIService + ApiService *ApiPypiSimpleAPIService + package_ string path string pulpDomain string fields *[]string @@ -341,54 +336,59 @@ type PypiSimpleAPIPypiSimpleReadRequest struct { } // A list of fields to include in the response. -func (r PypiSimpleAPIPypiSimpleReadRequest) Fields(fields []string) PypiSimpleAPIPypiSimpleReadRequest { +func (r ApiPypiSimpleAPIPypiSimplePackageReadRequest) Fields(fields []string) ApiPypiSimpleAPIPypiSimplePackageReadRequest { r.fields = &fields return r } // A list of fields to exclude from the response. -func (r PypiSimpleAPIPypiSimpleReadRequest) ExcludeFields(excludeFields []string) PypiSimpleAPIPypiSimpleReadRequest { +func (r ApiPypiSimpleAPIPypiSimplePackageReadRequest) ExcludeFields(excludeFields []string) ApiPypiSimpleAPIPypiSimplePackageReadRequest { r.excludeFields = &excludeFields return r } -func (r PypiSimpleAPIPypiSimpleReadRequest) Execute() (*http.Response, error) { - return r.ApiService.PypiSimpleReadExecute(r) +func (r ApiPypiSimpleAPIPypiSimplePackageReadRequest) Execute() (*http.Response, error) { + return r.ApiService.PypiSimplePackageReadExecute(r) } /* -PypiSimpleRead Get index simple page +PypiSimplePackageRead Get package simple page -Gets the simple api html page for the index. +Retrieves the simple api html page for a package. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param package_ @param path @param pulpDomain - @return PypiSimpleAPIPypiSimpleReadRequest + @return ApiPypiSimpleAPIPypiSimplePackageReadRequest */ -func (a *PypiSimpleAPIService) PypiSimpleRead(ctx context.Context, path string, pulpDomain string) PypiSimpleAPIPypiSimpleReadRequest { - return PypiSimpleAPIPypiSimpleReadRequest{ +func (a *ApiPypiSimpleAPIService) PypiSimplePackageRead(ctx context.Context, package_ string, path string, pulpDomain string) ApiPypiSimpleAPIPypiSimplePackageReadRequest { + return ApiPypiSimpleAPIPypiSimplePackageReadRequest{ ApiService: a, ctx: ctx, + package_: package_, path: path, pulpDomain: pulpDomain, } } // Execute executes the request -func (a *PypiSimpleAPIService) PypiSimpleReadExecute(r PypiSimpleAPIPypiSimpleReadRequest) (*http.Response, error) { +func (a *ApiPypiSimpleAPIService) PypiSimplePackageReadExecute(r ApiPypiSimpleAPIPypiSimplePackageReadRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PypiSimpleAPIService.PypiSimpleRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiPypiSimpleAPIService.PypiSimplePackageRead") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/pypi/{pulp_domain}/{path}/simple/" + localVarPath := localBasePath + "/api/pulp/pypi/{pulp_domain}/{path}/simple/{package}/" + localVarPath = strings.Replace(localVarPath, "{"+"package"+"}", url.PathEscape(parameterValueToString(r.package_, "package_")), -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) diff --git a/release/api_pypi_metadata.go b/release/api_pypi_metadata.go index d304a72..141288e 100644 --- a/release/api_pypi_metadata.go +++ b/release/api_pypi_metadata.go @@ -25,7 +25,7 @@ import ( // PypiMetadataAPIService PypiMetadataAPI service type PypiMetadataAPIService service -type PypiMetadataAPIPypiPypiReadRequest struct { +type PypiMetadataAPIApiPulpPypiPypiReadRequest struct { ctx context.Context ApiService *PypiMetadataAPIService meta string @@ -36,23 +36,23 @@ type PypiMetadataAPIPypiPypiReadRequest struct { } // A list of fields to include in the response. -func (r PypiMetadataAPIPypiPypiReadRequest) Fields(fields []string) PypiMetadataAPIPypiPypiReadRequest { +func (r PypiMetadataAPIApiPulpPypiPypiReadRequest) Fields(fields []string) PypiMetadataAPIApiPulpPypiPypiReadRequest { r.fields = &fields return r } // A list of fields to exclude from the response. -func (r PypiMetadataAPIPypiPypiReadRequest) ExcludeFields(excludeFields []string) PypiMetadataAPIPypiPypiReadRequest { +func (r PypiMetadataAPIApiPulpPypiPypiReadRequest) ExcludeFields(excludeFields []string) PypiMetadataAPIApiPulpPypiPypiReadRequest { r.excludeFields = &excludeFields return r } -func (r PypiMetadataAPIPypiPypiReadRequest) Execute() (*PackageMetadataResponse, *http.Response, error) { - return r.ApiService.PypiPypiReadExecute(r) +func (r PypiMetadataAPIApiPulpPypiPypiReadRequest) Execute() (*PackageMetadataResponse, *http.Response, error) { + return r.ApiService.ApiPulpPypiPypiReadExecute(r) } /* -PypiPypiRead Get package metadata +ApiPulpPypiPypiRead Get package metadata Retrieves the package's core-metadata specified byhttps://packaging.python.org/specifications/core-metadata/.`meta` must be a path in form of `{package}/json/` or `{package}/{version}/json/` @@ -60,10 +60,10 @@ Retrieves the package's core-metadata specified byhttps://packaging.python.org/s @param meta @param path @param pulpDomain - @return PypiMetadataAPIPypiPypiReadRequest + @return PypiMetadataAPIApiPulpPypiPypiReadRequest */ -func (a *PypiMetadataAPIService) PypiPypiRead(ctx context.Context, meta string, path string, pulpDomain string) PypiMetadataAPIPypiPypiReadRequest { - return PypiMetadataAPIPypiPypiReadRequest{ +func (a *PypiMetadataAPIService) ApiPulpPypiPypiRead(ctx context.Context, meta string, path string, pulpDomain string) PypiMetadataAPIApiPulpPypiPypiReadRequest { + return PypiMetadataAPIApiPulpPypiPypiReadRequest{ ApiService: a, ctx: ctx, meta: meta, @@ -74,7 +74,7 @@ func (a *PypiMetadataAPIService) PypiPypiRead(ctx context.Context, meta string, // Execute executes the request // @return PackageMetadataResponse -func (a *PypiMetadataAPIService) PypiPypiReadExecute(r PypiMetadataAPIPypiPypiReadRequest) (*PackageMetadataResponse, *http.Response, error) { +func (a *PypiMetadataAPIService) ApiPulpPypiPypiReadExecute(r PypiMetadataAPIApiPulpPypiPypiReadRequest) (*PackageMetadataResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -82,12 +82,12 @@ func (a *PypiMetadataAPIService) PypiPypiReadExecute(r PypiMetadataAPIPypiPypiRe localVarReturnValue *PackageMetadataResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PypiMetadataAPIService.PypiPypiRead") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PypiMetadataAPIService.ApiPulpPypiPypiRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/pypi/{pulp_domain}/{path}/pypi/{meta}/" + localVarPath := localBasePath + "/api/pulp/pypi/{pulp_domain}/{path}/pypi/{meta}/" localVarPath = strings.Replace(localVarPath, "{"+"meta"+"}", url.PathEscape(parameterValueToString(r.meta, "meta")), -1) localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) diff --git a/release/client.go b/release/client.go index 3d43701..48d94ea 100644 --- a/release/client.go +++ b/release/client.go @@ -56,6 +56,12 @@ type APIClient struct { AcsRpmAPI *AcsRpmAPIService + ApiPypiAPI *ApiPypiAPIService + + ApiPypiLegacyAPI *ApiPypiLegacyAPIService + + ApiPypiSimpleAPI *ApiPypiSimpleAPIService + ArtifactsAPI *ArtifactsAPIService ContentAPI *ContentAPIService @@ -180,14 +186,8 @@ type APIClient struct { PublicationsRpmAPI *PublicationsRpmAPIService - PypiAPI *PypiAPIService - - PypiLegacyAPI *PypiLegacyAPIService - PypiMetadataAPI *PypiMetadataAPIService - PypiSimpleAPI *PypiSimpleAPIService - RemotesAPI *RemotesAPIService RemotesFileAPI *RemotesFileAPIService @@ -280,6 +280,9 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.AccessPoliciesAPI = (*AccessPoliciesAPIService)(&c.common) c.AcsFileAPI = (*AcsFileAPIService)(&c.common) c.AcsRpmAPI = (*AcsRpmAPIService)(&c.common) + c.ApiPypiAPI = (*ApiPypiAPIService)(&c.common) + c.ApiPypiLegacyAPI = (*ApiPypiLegacyAPIService)(&c.common) + c.ApiPypiSimpleAPI = (*ApiPypiSimpleAPIService)(&c.common) c.ArtifactsAPI = (*ArtifactsAPIService)(&c.common) c.ContentAPI = (*ContentAPIService)(&c.common) c.ContentAdvisoriesAPI = (*ContentAdvisoriesAPIService)(&c.common) @@ -342,10 +345,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.PublicationsGemAPI = (*PublicationsGemAPIService)(&c.common) c.PublicationsPypiAPI = (*PublicationsPypiAPIService)(&c.common) c.PublicationsRpmAPI = (*PublicationsRpmAPIService)(&c.common) - c.PypiAPI = (*PypiAPIService)(&c.common) - c.PypiLegacyAPI = (*PypiLegacyAPIService)(&c.common) c.PypiMetadataAPI = (*PypiMetadataAPIService)(&c.common) - c.PypiSimpleAPI = (*PypiSimpleAPIService)(&c.common) c.RemotesAPI = (*RemotesAPIService)(&c.common) c.RemotesFileAPI = (*RemotesFileAPIService)(&c.common) c.RemotesGemAPI = (*RemotesGemAPIService)(&c.common) diff --git a/release/configuration.go b/release/configuration.go index 782e5fb..4cd7e8a 100644 --- a/release/configuration.go +++ b/release/configuration.go @@ -93,7 +93,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/de24b382d968bd5ed3a4252b36e475a3824b4e1b7a98d596b8e3294aa65e495a/go", + UserAgent: "OpenAPI-Generator/b96da963e282496dea8346bd425a7ea332b2a8087e8639db952b3ae5d4b58e83/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/release/docs/PypiAPI.md b/release/docs/ApiPypiAPI.md similarity index 70% rename from release/docs/PypiAPI.md rename to release/docs/ApiPypiAPI.md index 09cf3da..73a0a1e 100644 --- a/release/docs/PypiAPI.md +++ b/release/docs/ApiPypiAPI.md @@ -1,16 +1,16 @@ -# \PypiAPI +# \ApiPypiAPI All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- -[**PypiRead**](PypiAPI.md#PypiRead) | **Get** /pypi/{pulp_domain}/{path}/ | Get index summary +[**ApiPulpPypiRead**](ApiPypiAPI.md#ApiPulpPypiRead) | **Get** /api/pulp/pypi/{pulp_domain}/{path}/ | Get index summary -## PypiRead +## ApiPulpPypiRead -> SummaryResponse PypiRead(ctx, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() +> SummaryResponse ApiPulpPypiRead(ctx, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() Get index summary @@ -36,13 +36,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PypiAPI.PypiRead(context.Background(), path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() + resp, r, err := apiClient.ApiPypiAPI.ApiPulpPypiRead(context.Background(), path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PypiAPI.PypiRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiPypiAPI.ApiPulpPypiRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PypiRead`: SummaryResponse - fmt.Fprintf(os.Stdout, "Response from `PypiAPI.PypiRead`: %v\n", resp) + // response from `ApiPulpPypiRead`: SummaryResponse + fmt.Fprintf(os.Stdout, "Response from `ApiPypiAPI.ApiPulpPypiRead`: %v\n", resp) } ``` @@ -57,7 +57,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiPypiReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiApiPulpPypiReadRequest struct via the builder pattern Name | Type | Description | Notes diff --git a/release/docs/PypiLegacyAPI.md b/release/docs/ApiPypiLegacyAPI.md similarity index 70% rename from release/docs/PypiLegacyAPI.md rename to release/docs/ApiPypiLegacyAPI.md index 408887c..ca50e8c 100644 --- a/release/docs/PypiLegacyAPI.md +++ b/release/docs/ApiPypiLegacyAPI.md @@ -1,16 +1,16 @@ -# \PypiLegacyAPI +# \ApiPypiLegacyAPI All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- -[**PypiLegacyCreate**](PypiLegacyAPI.md#PypiLegacyCreate) | **Post** /pypi/{pulp_domain}/{path}/legacy/ | Upload a package +[**ApiPulpPypiLegacyCreate**](ApiPypiLegacyAPI.md#ApiPulpPypiLegacyCreate) | **Post** /api/pulp/pypi/{pulp_domain}/{path}/legacy/ | Upload a package -## PypiLegacyCreate +## ApiPulpPypiLegacyCreate -> PackageUploadTaskResponse PypiLegacyCreate(ctx, path, pulpDomain).Content(content).Sha256Digest(sha256Digest).Action(action).Execute() +> PackageUploadTaskResponse ApiPulpPypiLegacyCreate(ctx, path, pulpDomain).Content(content).Sha256Digest(sha256Digest).Action(action).Execute() Upload a package @@ -37,13 +37,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PypiLegacyAPI.PypiLegacyCreate(context.Background(), path, pulpDomain).Content(content).Sha256Digest(sha256Digest).Action(action).Execute() + resp, r, err := apiClient.ApiPypiLegacyAPI.ApiPulpPypiLegacyCreate(context.Background(), path, pulpDomain).Content(content).Sha256Digest(sha256Digest).Action(action).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PypiLegacyAPI.PypiLegacyCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiPypiLegacyAPI.ApiPulpPypiLegacyCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PypiLegacyCreate`: PackageUploadTaskResponse - fmt.Fprintf(os.Stdout, "Response from `PypiLegacyAPI.PypiLegacyCreate`: %v\n", resp) + // response from `ApiPulpPypiLegacyCreate`: PackageUploadTaskResponse + fmt.Fprintf(os.Stdout, "Response from `ApiPypiLegacyAPI.ApiPulpPypiLegacyCreate`: %v\n", resp) } ``` @@ -58,7 +58,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiPypiLegacyCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiApiPulpPypiLegacyCreateRequest struct via the builder pattern Name | Type | Description | Notes diff --git a/release/docs/PypiSimpleAPI.md b/release/docs/ApiPypiSimpleAPI.md similarity index 74% rename from release/docs/PypiSimpleAPI.md rename to release/docs/ApiPypiSimpleAPI.md index 6f44844..408c273 100644 --- a/release/docs/PypiSimpleAPI.md +++ b/release/docs/ApiPypiSimpleAPI.md @@ -1,18 +1,18 @@ -# \PypiSimpleAPI +# \ApiPypiSimpleAPI All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- -[**PypiSimpleCreate**](PypiSimpleAPI.md#PypiSimpleCreate) | **Post** /pypi/{pulp_domain}/{path}/simple/ | Upload a package -[**PypiSimplePackageRead**](PypiSimpleAPI.md#PypiSimplePackageRead) | **Get** /pypi/{pulp_domain}/{path}/simple/{package}/ | Get package simple page -[**PypiSimpleRead**](PypiSimpleAPI.md#PypiSimpleRead) | **Get** /pypi/{pulp_domain}/{path}/simple/ | Get index simple page +[**ApiPulpPypiSimpleCreate**](ApiPypiSimpleAPI.md#ApiPulpPypiSimpleCreate) | **Post** /api/pulp/pypi/{pulp_domain}/{path}/simple/ | Upload a package +[**ApiPulpPypiSimpleRead**](ApiPypiSimpleAPI.md#ApiPulpPypiSimpleRead) | **Get** /api/pulp/pypi/{pulp_domain}/{path}/simple/ | Get index simple page +[**PypiSimplePackageRead**](ApiPypiSimpleAPI.md#PypiSimplePackageRead) | **Get** /api/pulp/pypi/{pulp_domain}/{path}/simple/{package}/ | Get package simple page -## PypiSimpleCreate +## ApiPulpPypiSimpleCreate -> PackageUploadTaskResponse PypiSimpleCreate(ctx, path, pulpDomain).Content(content).Sha256Digest(sha256Digest).Action(action).Execute() +> PackageUploadTaskResponse ApiPulpPypiSimpleCreate(ctx, path, pulpDomain).Content(content).Sha256Digest(sha256Digest).Action(action).Execute() Upload a package @@ -39,13 +39,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PypiSimpleAPI.PypiSimpleCreate(context.Background(), path, pulpDomain).Content(content).Sha256Digest(sha256Digest).Action(action).Execute() + resp, r, err := apiClient.ApiPypiSimpleAPI.ApiPulpPypiSimpleCreate(context.Background(), path, pulpDomain).Content(content).Sha256Digest(sha256Digest).Action(action).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PypiSimpleAPI.PypiSimpleCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiPypiSimpleAPI.ApiPulpPypiSimpleCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PypiSimpleCreate`: PackageUploadTaskResponse - fmt.Fprintf(os.Stdout, "Response from `PypiSimpleAPI.PypiSimpleCreate`: %v\n", resp) + // response from `ApiPulpPypiSimpleCreate`: PackageUploadTaskResponse + fmt.Fprintf(os.Stdout, "Response from `ApiPypiSimpleAPI.ApiPulpPypiSimpleCreate`: %v\n", resp) } ``` @@ -60,7 +60,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiPypiSimpleCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiApiPulpPypiSimpleCreateRequest struct via the builder pattern Name | Type | Description | Notes @@ -89,11 +89,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## PypiSimplePackageRead +## ApiPulpPypiSimpleRead -> PypiSimplePackageRead(ctx, package_, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() +> ApiPulpPypiSimpleRead(ctx, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() -Get package simple page +Get index simple page @@ -110,7 +110,6 @@ import ( ) func main() { - package_ := "package__example" // string | path := "path_example" // string | pulpDomain := "pulpDomain_example" // string | fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) @@ -118,9 +117,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.PypiSimpleAPI.PypiSimplePackageRead(context.Background(), package_, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() + r, err := apiClient.ApiPypiSimpleAPI.ApiPulpPypiSimpleRead(context.Background(), path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PypiSimpleAPI.PypiSimplePackageRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiPypiSimpleAPI.ApiPulpPypiSimpleRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -132,20 +131,18 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**package_** | **string** | | **path** | **string** | | **pulpDomain** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiPypiSimplePackageReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiApiPulpPypiSimpleReadRequest 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. | @@ -167,11 +164,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## PypiSimpleRead +## PypiSimplePackageRead -> PypiSimpleRead(ctx, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() +> PypiSimplePackageRead(ctx, package_, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() -Get index simple page +Get package simple page @@ -188,6 +185,7 @@ import ( ) func main() { + package_ := "package__example" // string | path := "path_example" // string | pulpDomain := "pulpDomain_example" // string | fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) @@ -195,9 +193,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.PypiSimpleAPI.PypiSimpleRead(context.Background(), path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() + r, err := apiClient.ApiPypiSimpleAPI.PypiSimplePackageRead(context.Background(), package_, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PypiSimpleAPI.PypiSimpleRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiPypiSimpleAPI.PypiSimplePackageRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -209,18 +207,20 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**package_** | **string** | | **path** | **string** | | **pulpDomain** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiPypiSimpleReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiPypiSimplePackageReadRequest 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. | diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index 4faae89..fa2652d 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,23 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [optional] [readonly] **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] **Hidden** | Pointer to **bool** | Whether this distribution should be shown in the content app. | [optional] [default to false] +**Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | +**Prn** | Pointer to **string** | The Pulp Resource Name (PRN). | [optional] [readonly] **BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] -**NoContentChangeSince** | Pointer to **string** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional] [readonly] -**ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] -**PulpLabels** | Pointer to **map[string]string** | | [optional] -**PulpLastUpdated** | Pointer to **time.Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [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\") | **PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**PulpLastUpdated** | Pointer to **time.Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] +**ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] +**NoContentChangeSince** | Pointer to **string** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional] [readonly] ## Methods ### NewArtifactDistributionResponse -`func NewArtifactDistributionResponse(name string, basePath string, ) *ArtifactDistributionResponse` +`func NewArtifactDistributionResponse(basePath string, name string, ) *ArtifactDistributionResponse` NewArtifactDistributionResponse instantiates a new ArtifactDistributionResponse object This constructor will assign default values to properties that have it defined, @@ -35,31 +35,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 -### GetPrn - -`func (o *ArtifactDistributionResponse) GetPrn() string` - -GetPrn returns the Prn field if non-nil, zero value otherwise. - -### GetPrnOk - -`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` - -GetPrnOk returns a tuple with the Prn field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrn - -`func (o *ArtifactDistributionResponse) SetPrn(v string)` - -SetPrn sets Prn field to given value. - -### HasPrn - -`func (o *ArtifactDistributionResponse) HasPrn() bool` - -HasPrn returns a boolean if a field has been set. - ### GetPulpHref `func (o *ArtifactDistributionResponse) GetPulpHref() string` @@ -85,25 +60,50 @@ SetPulpHref sets PulpHref field to given value. HasPulpHref returns a boolean if a field has been set. -### GetName +### GetBasePath -`func (o *ArtifactDistributionResponse) GetName() string` +`func (o *ArtifactDistributionResponse) GetBasePath() string` -GetName returns the Name field if non-nil, zero value otherwise. +GetBasePath returns the BasePath field if non-nil, zero value otherwise. -### GetNameOk +### GetBasePathOk -`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` -GetNameOk returns a tuple with the Name 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. -### SetName +### SetBasePath -`func (o *ArtifactDistributionResponse) SetName(v string)` +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` -SetName sets Name field to given value. +SetBasePath sets BasePath 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. ### GetHidden @@ -130,115 +130,100 @@ SetHidden sets Hidden field to given value. HasHidden returns a boolean if a field has been set. -### GetBaseUrl +### GetName -`func (o *ArtifactDistributionResponse) GetBaseUrl() string` +`func (o *ArtifactDistributionResponse) GetName() string` -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. +GetName returns the Name field if non-nil, zero value otherwise. -### GetBaseUrlOk +### GetNameOk -`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool)` -GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise +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. -### SetBaseUrl - -`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` - -SetBaseUrl sets BaseUrl field to given value. +### SetName -### HasBaseUrl +`func (o *ArtifactDistributionResponse) SetName(v string)` -`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` +SetName sets Name field to given value. -HasBaseUrl returns a boolean if a field has been set. -### GetNoContentChangeSince +### GetPrn -`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` +`func (o *ArtifactDistributionResponse) GetPrn() string` -GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. +GetPrn returns the Prn field if non-nil, zero value otherwise. -### GetNoContentChangeSinceOk +### GetPrnOk -`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool)` -GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field if it's non-nil, zero value otherwise +GetPrnOk returns a tuple with the Prn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetNoContentChangeSince +### SetPrn -`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` +`func (o *ArtifactDistributionResponse) SetPrn(v string)` -SetNoContentChangeSince sets NoContentChangeSince field to given value. +SetPrn sets Prn field to given value. -### HasNoContentChangeSince +### HasPrn -`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` +`func (o *ArtifactDistributionResponse) HasPrn() bool` -HasNoContentChangeSince returns a boolean if a field has been set. +HasPrn returns a boolean if a field has been set. -### GetContentGuard +### GetBaseUrl -`func (o *ArtifactDistributionResponse) GetContentGuard() string` +`func (o *ArtifactDistributionResponse) GetBaseUrl() string` -GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. -### GetContentGuardOk +### GetBaseUrlOk -`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool)` -GetContentGuardOk returns a tuple with the ContentGuard field if it's non-nil, zero value otherwise +GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetContentGuard - -`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` - -SetContentGuard sets ContentGuard field to given value. - -### HasContentGuard - -`func (o *ArtifactDistributionResponse) HasContentGuard() bool` +### SetBaseUrl -HasContentGuard returns a boolean if a field has been set. +`func (o *ArtifactDistributionResponse) SetBaseUrl(v string)` -### SetContentGuardNil +SetBaseUrl sets BaseUrl field to given value. -`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` +### HasBaseUrl - SetContentGuardNil sets the value for ContentGuard to be an explicit nil +`func (o *ArtifactDistributionResponse) HasBaseUrl() bool` -### UnsetContentGuard -`func (o *ArtifactDistributionResponse) UnsetContentGuard()` +HasBaseUrl returns a boolean if a field has been set. -UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -### GetPulpLabels +### GetPulpCreated -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` +`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetPulpCreatedOk -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise +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. -### SetPulpLabels +### SetPulpCreated -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` +`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` -SetPulpLabels sets PulpLabels field to given value. +SetPulpCreated sets PulpCreated field to given value. -### HasPulpLabels +### HasPulpCreated -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` -HasPulpLabels returns a boolean if a field has been set. +HasPulpCreated returns a boolean if a field has been set. ### GetPulpLastUpdated @@ -265,50 +250,65 @@ SetPulpLastUpdated sets PulpLastUpdated field to given value. HasPulpLastUpdated 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 -### GetPulpCreated +`func (o *ArtifactDistributionResponse) HasContentGuard() bool` -`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` +HasContentGuard returns a boolean if a field has been set. -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. +### SetContentGuardNil -### GetPulpCreatedOk +`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` -`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` + SetContentGuardNil sets the value for ContentGuard to be an explicit nil -GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise +### UnsetContentGuard +`func (o *ArtifactDistributionResponse) UnsetContentGuard()` + +UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil +### GetNoContentChangeSince + +`func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string` + +GetNoContentChangeSince returns the NoContentChangeSince field if non-nil, zero value otherwise. + +### GetNoContentChangeSinceOk + +`func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool)` + +GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpCreated +### SetNoContentChangeSince -`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` +`func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string)` -SetPulpCreated sets PulpCreated field to given value. +SetNoContentChangeSince sets NoContentChangeSince field to given value. -### HasPulpCreated +### HasNoContentChangeSince -`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` +`func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool` -HasPulpCreated returns a boolean if a field has been set. +HasNoContentChangeSince 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/PypiMetadataAPI.md b/release/docs/PypiMetadataAPI.md index 13e65c8..66ce063 100644 --- a/release/docs/PypiMetadataAPI.md +++ b/release/docs/PypiMetadataAPI.md @@ -4,13 +4,13 @@ All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- -[**PypiPypiRead**](PypiMetadataAPI.md#PypiPypiRead) | **Get** /pypi/{pulp_domain}/{path}/pypi/{meta}/ | Get package metadata +[**ApiPulpPypiPypiRead**](PypiMetadataAPI.md#ApiPulpPypiPypiRead) | **Get** /api/pulp/pypi/{pulp_domain}/{path}/pypi/{meta}/ | Get package metadata -## PypiPypiRead +## ApiPulpPypiPypiRead -> PackageMetadataResponse PypiPypiRead(ctx, meta, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() +> PackageMetadataResponse ApiPulpPypiPypiRead(ctx, meta, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() Get package metadata @@ -37,13 +37,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PypiMetadataAPI.PypiPypiRead(context.Background(), meta, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() + resp, r, err := apiClient.PypiMetadataAPI.ApiPulpPypiPypiRead(context.Background(), meta, path, pulpDomain).Fields(fields).ExcludeFields(excludeFields).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PypiMetadataAPI.PypiPypiRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PypiMetadataAPI.ApiPulpPypiPypiRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PypiPypiRead`: PackageMetadataResponse - fmt.Fprintf(os.Stdout, "Response from `PypiMetadataAPI.PypiPypiRead`: %v\n", resp) + // response from `ApiPulpPypiPypiRead`: PackageMetadataResponse + fmt.Fprintf(os.Stdout, "Response from `PypiMetadataAPI.ApiPulpPypiPypiRead`: %v\n", resp) } ``` @@ -59,7 +59,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiPypiPypiReadRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiApiPulpPypiPypiReadRequest struct via the builder pattern Name | Type | Description | Notes diff --git a/release/model_artifact_distribution_response.go b/release/model_artifact_distribution_response.go index 999ec4b..fcbb452 100644 --- a/release/model_artifact_distribution_response.go +++ b/release/model_artifact_distribution_response.go @@ -22,26 +22,26 @@ var _ MappedNullable = &ArtifactDistributionResponse{} // ArtifactDistributionResponse A serializer for ArtifactDistribution. type ArtifactDistributionResponse struct { - // The Pulp Resource Name (PRN). - Prn *string `json:"prn,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"` // Whether this distribution should be shown in the content app. Hidden *bool `json:"hidden,omitempty"` + // A unique name. Ex, `rawhide` and `stable`. + Name string `json:"name"` + // The Pulp Resource Name (PRN). + Prn *string `json:"prn,omitempty"` // The URL for accessing the publication as defined by this distribution. BaseUrl *string `json:"base_url,omitempty"` - // Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. - NoContentChangeSince *string `json:"no_content_change_since,omitempty"` - // An optional content-guard. - ContentGuard NullableString `json:"content_guard,omitempty"` - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` - // Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. - PulpLastUpdated *time.Time `json:"pulp_last_updated,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"` + // Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. + PulpLastUpdated *time.Time `json:"pulp_last_updated,omitempty"` + // An optional content-guard. + ContentGuard NullableString `json:"content_guard,omitempty"` + // Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. + NoContentChangeSince *string `json:"no_content_change_since,omitempty"` AdditionalProperties map[string]interface{} } @@ -51,12 +51,12 @@ type _ArtifactDistributionResponse ArtifactDistributionResponse // 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 NewArtifactDistributionResponse(name string, basePath string) *ArtifactDistributionResponse { +func NewArtifactDistributionResponse(basePath string, name string) *ArtifactDistributionResponse { this := ArtifactDistributionResponse{} - this.Name = name + this.BasePath = basePath var hidden bool = false this.Hidden = &hidden - this.BasePath = basePath + this.Name = name return &this } @@ -70,38 +70,6 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// GetPrn returns the Prn field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPrn() string { - if o == nil || IsNil(o.Prn) { - var ret string - return ret - } - return *o.Prn -} - -// GetPrnOk returns a tuple with the Prn field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool) { - if o == nil || IsNil(o.Prn) { - return nil, false - } - return o.Prn, true -} - -// HasPrn returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPrn() bool { - if o != nil && !IsNil(o.Prn) { - return true - } - - return false -} - -// SetPrn gets a reference to the given string and assigns it to the Prn field. -func (o *ArtifactDistributionResponse) SetPrn(v string) { - o.Prn = &v -} - // GetPulpHref returns the PulpHref field value if set, zero value otherwise. func (o *ArtifactDistributionResponse) GetPulpHref() string { if o == nil || IsNil(o.PulpHref) { @@ -134,28 +102,60 @@ func (o *ArtifactDistributionResponse) SetPulpHref(v string) { o.PulpHref = &v } -// GetName returns the Name field value -func (o *ArtifactDistributionResponse) GetName() string { +// GetBasePath returns the BasePath field value +func (o *ArtifactDistributionResponse) GetBasePath() string { if o == nil { var ret string return ret } - return o.Name + return o.BasePath } -// GetNameOk returns a tuple with the Name field value +// GetBasePathOk returns a tuple with the BasePath field value // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetNameOk() (*string, bool) { +func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { if o == nil { return nil, false } - return &o.Name, true + return &o.BasePath, true } -// SetName sets field value -func (o *ArtifactDistributionResponse) SetName(v string) { - o.Name = v +// 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 +} + +// 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) 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 *ArtifactDistributionResponse) 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 *ArtifactDistributionResponse) SetPulpLabels(v map[string]string) { + o.PulpLabels = &v } // GetHidden returns the Hidden field value if set, zero value otherwise. @@ -190,142 +190,124 @@ func (o *ArtifactDistributionResponse) SetHidden(v bool) { o.Hidden = &v } -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetBaseUrl() string { - if o == nil || IsNil(o.BaseUrl) { +// GetName returns the Name field value +func (o *ArtifactDistributionResponse) GetName() string { + if o == nil { var ret string return ret } - return *o.BaseUrl + + return o.Name } -// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value // 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) GetNameOk() (*string, bool) { + if o == nil { return nil, false } - return o.BaseUrl, true -} - -// 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 + return &o.Name, true } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &v +// SetName sets field value +func (o *ArtifactDistributionResponse) SetName(v string) { + o.Name = v } -// GetNoContentChangeSince returns the NoContentChangeSince field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string { - if o == nil || IsNil(o.NoContentChangeSince) { +// GetPrn returns the Prn field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPrn() string { + if o == nil || IsNil(o.Prn) { var ret string return ret } - return *o.NoContentChangeSince + return *o.Prn } -// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince field value if set, nil otherwise +// GetPrnOk returns a tuple with the Prn field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { - if o == nil || IsNil(o.NoContentChangeSince) { +func (o *ArtifactDistributionResponse) GetPrnOk() (*string, bool) { + if o == nil || IsNil(o.Prn) { return nil, false } - return o.NoContentChangeSince, true + return o.Prn, true } -// HasNoContentChangeSince returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool { - if o != nil && !IsNil(o.NoContentChangeSince) { +// HasPrn returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPrn() bool { + if o != nil && !IsNil(o.Prn) { return true } return false } -// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. -func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { - o.NoContentChangeSince = &v +// SetPrn gets a reference to the given string and assigns it to the Prn field. +func (o *ArtifactDistributionResponse) SetPrn(v string) { + o.Prn = &v } -// GetContentGuard returns the ContentGuard field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ArtifactDistributionResponse) GetContentGuard() string { - if o == nil || IsNil(o.ContentGuard.Get()) { +// 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.ContentGuard.Get() + return *o.BaseUrl } -// GetContentGuardOk returns a tuple with the ContentGuard 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. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool) { - if o == nil { +func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { return nil, false } - return o.ContentGuard.Get(), o.ContentGuard.IsSet() + return o.BaseUrl, true } -// HasContentGuard returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasContentGuard() bool { - if o != nil && o.ContentGuard.IsSet() { +// 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 } -// SetContentGuard gets a reference to the given NullableString and assigns it to the ContentGuard field. -func (o *ArtifactDistributionResponse) SetContentGuard(v string) { - o.ContentGuard.Set(&v) -} -// SetContentGuardNil sets the value for ContentGuard to be an explicit nil -func (o *ArtifactDistributionResponse) SetContentGuardNil() { - o.ContentGuard.Set(nil) -} - -// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil -func (o *ArtifactDistributionResponse) UnsetContentGuard() { - o.ContentGuard.Unset() +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { + o.BaseUrl = &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 +// 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.PulpLabels + return *o.PulpCreated } -// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise +// 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) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { return nil, false } - return o.PulpLabels, true + return o.PulpCreated, true } -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// 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 } -// 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 +// 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 } // GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. @@ -360,60 +342,78 @@ func (o *ArtifactDistributionResponse) SetPulpLastUpdated(v time.Time) { o.PulpLastUpdated = &v } -// GetBasePath returns the BasePath field value -func (o *ArtifactDistributionResponse) GetBasePath() string { - if o == nil { +// GetContentGuard returns the ContentGuard field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ArtifactDistributionResponse) GetContentGuard() string { + if o == nil || IsNil(o.ContentGuard.Get()) { var ret string return ret } - - return o.BasePath + return *o.ContentGuard.Get() } -// GetBasePathOk returns a tuple with the BasePath field value +// GetContentGuardOk returns a tuple with the ContentGuard field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool) { if o == nil { return nil, false } - return &o.BasePath, true + return o.ContentGuard.Get(), o.ContentGuard.IsSet() } -// SetBasePath sets field value -func (o *ArtifactDistributionResponse) SetBasePath(v string) { - o.BasePath = v +// HasContentGuard returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasContentGuard() bool { + if o != nil && o.ContentGuard.IsSet() { + return true + } + + return false } -// 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 +// SetContentGuard gets a reference to the given NullableString and assigns it to the ContentGuard field. +func (o *ArtifactDistributionResponse) SetContentGuard(v string) { + o.ContentGuard.Set(&v) +} +// SetContentGuardNil sets the value for ContentGuard to be an explicit nil +func (o *ArtifactDistributionResponse) SetContentGuardNil() { + o.ContentGuard.Set(nil) +} + +// UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil +func (o *ArtifactDistributionResponse) UnsetContentGuard() { + o.ContentGuard.Unset() +} + +// GetNoContentChangeSince returns the NoContentChangeSince field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetNoContentChangeSince() string { + if o == nil || IsNil(o.NoContentChangeSince) { + var ret string return ret } - return *o.PulpCreated + return *o.NoContentChangeSince } -// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise +// GetNoContentChangeSinceOk returns a tuple with the NoContentChangeSince 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) { +func (o *ArtifactDistributionResponse) GetNoContentChangeSinceOk() (*string, bool) { + if o == nil || IsNil(o.NoContentChangeSince) { return nil, false } - return o.PulpCreated, true + return o.NoContentChangeSince, true } -// HasPulpCreated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpCreated() bool { - if o != nil && !IsNil(o.PulpCreated) { +// HasNoContentChangeSince returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasNoContentChangeSince() bool { + if o != nil && !IsNil(o.NoContentChangeSince) { 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 +// SetNoContentChangeSince gets a reference to the given string and assigns it to the NoContentChangeSince field. +func (o *ArtifactDistributionResponse) SetNoContentChangeSince(v string) { + o.NoContentChangeSince = &v } func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { @@ -426,34 +426,34 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Prn) { - toSerialize["prn"] = o.Prn - } if !IsNil(o.PulpHref) { toSerialize["pulp_href"] = o.PulpHref } - toSerialize["name"] = o.Name + toSerialize["base_path"] = o.BasePath + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels + } if !IsNil(o.Hidden) { toSerialize["hidden"] = o.Hidden } + toSerialize["name"] = o.Name + if !IsNil(o.Prn) { + toSerialize["prn"] = o.Prn + } if !IsNil(o.BaseUrl) { toSerialize["base_url"] = o.BaseUrl } - if !IsNil(o.NoContentChangeSince) { - toSerialize["no_content_change_since"] = o.NoContentChangeSince - } - if o.ContentGuard.IsSet() { - toSerialize["content_guard"] = o.ContentGuard.Get() - } - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels + if !IsNil(o.PulpCreated) { + toSerialize["pulp_created"] = o.PulpCreated } if !IsNil(o.PulpLastUpdated) { toSerialize["pulp_last_updated"] = o.PulpLastUpdated } - toSerialize["base_path"] = o.BasePath - if !IsNil(o.PulpCreated) { - toSerialize["pulp_created"] = o.PulpCreated + if o.ContentGuard.IsSet() { + toSerialize["content_guard"] = o.ContentGuard.Get() + } + if !IsNil(o.NoContentChangeSince) { + toSerialize["no_content_change_since"] = o.NoContentChangeSince } for key, value := range o.AdditionalProperties { @@ -468,8 +468,8 @@ func (o *ArtifactDistributionResponse) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "name", "base_path", + "name", } allProperties := make(map[string]interface{}) @@ -499,17 +499,17 @@ func (o *ArtifactDistributionResponse) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "prn") delete(additionalProperties, "pulp_href") - delete(additionalProperties, "name") + delete(additionalProperties, "base_path") + delete(additionalProperties, "pulp_labels") delete(additionalProperties, "hidden") + delete(additionalProperties, "name") + delete(additionalProperties, "prn") delete(additionalProperties, "base_url") - delete(additionalProperties, "no_content_change_since") - delete(additionalProperties, "content_guard") - delete(additionalProperties, "pulp_labels") - delete(additionalProperties, "pulp_last_updated") - delete(additionalProperties, "base_path") delete(additionalProperties, "pulp_created") + delete(additionalProperties, "pulp_last_updated") + delete(additionalProperties, "content_guard") + delete(additionalProperties, "no_content_change_since") o.AdditionalProperties = additionalProperties } diff --git a/release/test/api_pypi_legacy_test.go b/release/test/api_api_pypi_legacy_test.go similarity index 66% rename from release/test/api_pypi_legacy_test.go rename to release/test/api_api_pypi_legacy_test.go index eaf690b..03d18ec 100644 --- a/release/test/api_pypi_legacy_test.go +++ b/release/test/api_api_pypi_legacy_test.go @@ -1,7 +1,7 @@ /* Pulp 3 API -Testing PypiLegacyAPIService +Testing ApiPypiLegacyAPIService */ @@ -17,19 +17,19 @@ import ( openapiclient "github.com/content-services/zest/release/v2024" ) -func Test_zest_PypiLegacyAPIService(t *testing.T) { +func Test_zest_ApiPypiLegacyAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PypiLegacyAPIService PypiLegacyCreate", func(t *testing.T) { + t.Run("Test ApiPypiLegacyAPIService ApiPulpPypiLegacyCreate", func(t *testing.T) { t.Skip("skip test") // remove to run test var path string var pulpDomain string - resp, httpRes, err := apiClient.PypiLegacyAPI.PypiLegacyCreate(context.Background(), path, pulpDomain).Execute() + resp, httpRes, err := apiClient.ApiPypiLegacyAPI.ApiPulpPypiLegacyCreate(context.Background(), path, pulpDomain).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/release/test/api_pypi_simple_test.go b/release/test/api_api_pypi_simple_test.go similarity index 56% rename from release/test/api_pypi_simple_test.go rename to release/test/api_api_pypi_simple_test.go index e193ce0..f8e1aac 100644 --- a/release/test/api_pypi_simple_test.go +++ b/release/test/api_api_pypi_simple_test.go @@ -1,7 +1,7 @@ /* Pulp 3 API -Testing PypiSimpleAPIService +Testing ApiPypiSimpleAPIService */ @@ -17,19 +17,19 @@ import ( openapiclient "github.com/content-services/zest/release/v2024" ) -func Test_zest_PypiSimpleAPIService(t *testing.T) { +func Test_zest_ApiPypiSimpleAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PypiSimpleAPIService PypiSimpleCreate", func(t *testing.T) { + t.Run("Test ApiPypiSimpleAPIService ApiPulpPypiSimpleCreate", func(t *testing.T) { t.Skip("skip test") // remove to run test var path string var pulpDomain string - resp, httpRes, err := apiClient.PypiSimpleAPI.PypiSimpleCreate(context.Background(), path, pulpDomain).Execute() + resp, httpRes, err := apiClient.ApiPypiSimpleAPI.ApiPulpPypiSimpleCreate(context.Background(), path, pulpDomain).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -37,29 +37,29 @@ func Test_zest_PypiSimpleAPIService(t *testing.T) { }) - t.Run("Test PypiSimpleAPIService PypiSimplePackageRead", func(t *testing.T) { + t.Run("Test ApiPypiSimpleAPIService ApiPulpPypiSimpleRead", func(t *testing.T) { t.Skip("skip test") // remove to run test - var package_ string var path string var pulpDomain string - httpRes, err := apiClient.PypiSimpleAPI.PypiSimplePackageRead(context.Background(), package_, path, pulpDomain).Execute() + httpRes, err := apiClient.ApiPypiSimpleAPI.ApiPulpPypiSimpleRead(context.Background(), path, pulpDomain).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test PypiSimpleAPIService PypiSimpleRead", func(t *testing.T) { + t.Run("Test ApiPypiSimpleAPIService PypiSimplePackageRead", func(t *testing.T) { t.Skip("skip test") // remove to run test + var package_ string var path string var pulpDomain string - httpRes, err := apiClient.PypiSimpleAPI.PypiSimpleRead(context.Background(), path, pulpDomain).Execute() + httpRes, err := apiClient.ApiPypiSimpleAPI.PypiSimplePackageRead(context.Background(), package_, path, pulpDomain).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/release/test/api_pypi_test.go b/release/test/api_api_pypi_test.go similarity index 69% rename from release/test/api_pypi_test.go rename to release/test/api_api_pypi_test.go index 62dae04..504f4f1 100644 --- a/release/test/api_pypi_test.go +++ b/release/test/api_api_pypi_test.go @@ -1,7 +1,7 @@ /* Pulp 3 API -Testing PypiAPIService +Testing ApiPypiAPIService */ @@ -17,19 +17,19 @@ import ( openapiclient "github.com/content-services/zest/release/v2024" ) -func Test_zest_PypiAPIService(t *testing.T) { +func Test_zest_ApiPypiAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PypiAPIService PypiRead", func(t *testing.T) { + t.Run("Test ApiPypiAPIService ApiPulpPypiRead", func(t *testing.T) { t.Skip("skip test") // remove to run test var path string var pulpDomain string - resp, httpRes, err := apiClient.PypiAPI.PypiRead(context.Background(), path, pulpDomain).Execute() + resp, httpRes, err := apiClient.ApiPypiAPI.ApiPulpPypiRead(context.Background(), path, pulpDomain).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/release/test/api_pypi_metadata_test.go b/release/test/api_pypi_metadata_test.go index 6d15c9e..c249527 100644 --- a/release/test/api_pypi_metadata_test.go +++ b/release/test/api_pypi_metadata_test.go @@ -22,7 +22,7 @@ func Test_zest_PypiMetadataAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PypiMetadataAPIService PypiPypiRead", func(t *testing.T) { + t.Run("Test PypiMetadataAPIService ApiPulpPypiPypiRead", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -30,7 +30,7 @@ func Test_zest_PypiMetadataAPIService(t *testing.T) { var path string var pulpDomain string - resp, httpRes, err := apiClient.PypiMetadataAPI.PypiPypiRead(context.Background(), meta, path, pulpDomain).Execute() + resp, httpRes, err := apiClient.PypiMetadataAPI.ApiPulpPypiPypiRead(context.Background(), meta, path, pulpDomain).Execute() require.Nil(t, err) require.NotNil(t, resp)