New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenAPI v3 with drf-spectacular #1779
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
WARNING!!! This PR is not attached to an issue. In most cases this is not advisable. Please see our PR docs for more information about how to attach this PR to an issue. |
28e1843
to
41d5dd5
Compare
fao89
commented
Jul 21, 2020
| @@ -78,7 +78,7 @@ def test_sync_with_retention(self): | |||
| # Set the retention policy to retain only 1 version of each package | |||
| repo_data = repo.to_dict() | |||
| repo_data.update({'retain_package_versions': 1}) | |||
| self.repo_api.update(repo.pulp_href, data=repo_data) | |||
| self.repo_api.update(repo.pulp_href, repo_data) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drf-yasg (OpenAPI v2):
class RepositoriesRpmApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def create(self, data, **kwargs): # noqa: E501
"""Create a rpm repository # noqa: E501drf-spectacular (OpenAPI v3):
class RepositoriesRpmApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def create(self, rpm_rpm_repository, **kwargs): # noqa: E501
"""create # noqa: E501
fao89
added a commit
to fao89/pulp-2to3-migration
that referenced
this pull request
Jul 22, 2020
Required PR: pulp/pulpcore#785 Required PR: pulp/pulp_file#413 Required PR: pulp/pulp_rpm#1779 Required PR: pulp/pulp_container#128 [noissue]
fao89
added a commit
to fao89/pulp-2to3-migration
that referenced
this pull request
Jul 22, 2020
Required PR: pulp/pulpcore#785 Required PR: pulp/pulp_file#413 Required PR: pulp/pulp_rpm#1779 Required PR: pulp/pulp_container#128 [noissue]
Required PR: pulp/pulpcore#785 [noissue] [nocoverage]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Required PR: pulp/pulpcore#785
[noissue]