pulp-python-client 3.10.0__py3-none-any.whl → 3.10.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulp-python-client might be problematic. Click here for more details.
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.10.1.dist-info}/METADATA +6 -8
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.10.1.dist-info}/RECORD +29 -25
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.10.1.dist-info}/WHEEL +1 -1
- pulpcore/client/pulp_python/__init__.py +5 -1
- pulpcore/client/pulp_python/api/content_packages_api.py +10 -5
- pulpcore/client/pulp_python/api/distributions_pypi_api.py +281 -2
- pulpcore/client/pulp_python/api/publications_pypi_api.py +5 -0
- pulpcore/client/pulp_python/api/remotes_python_api.py +279 -0
- pulpcore/client/pulp_python/api/repositories_python_api.py +279 -0
- pulpcore/client/pulp_python/api/repositories_python_versions_api.py +5 -0
- pulpcore/client/pulp_python/api_client.py +1 -1
- pulpcore/client/pulp_python/configuration.py +3 -3
- pulpcore/client/pulp_python/models/__init__.py +4 -0
- pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +6 -4
- pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +29 -1
- pulpcore/client/pulp_python/models/python_python_distribution.py +29 -1
- pulpcore/client/pulp_python/models/python_python_distribution_response.py +29 -1
- pulpcore/client/pulp_python/models/python_python_package_content.py +29 -29
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +6 -4
- pulpcore/client/pulp_python/models/set_label.py +153 -0
- pulpcore/client/pulp_python/models/set_label_response.py +150 -0
- pulpcore/client/pulp_python/models/unset_label.py +128 -0
- pulpcore/client/pulp_python/models/unset_label_response.py +151 -0
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.10.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pulp 3 API
|
|
5
|
+
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3
|
|
9
|
+
Contact: pulp-list@redhat.com
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from pulpcore.client.pulp_python.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class UnsetLabel(object):
|
|
23
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
24
|
+
Ref: https://openapi-generator.tech
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
Attributes:
|
|
31
|
+
openapi_types (dict): The key is attribute name
|
|
32
|
+
and the value is attribute type.
|
|
33
|
+
attribute_map (dict): The key is attribute name
|
|
34
|
+
and the value is json key in definition.
|
|
35
|
+
"""
|
|
36
|
+
openapi_types = {
|
|
37
|
+
'key': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'key': 'key'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
def __init__(self, key=None, local_vars_configuration=None): # noqa: E501
|
|
45
|
+
"""UnsetLabel - a model defined in OpenAPI""" # noqa: E501
|
|
46
|
+
if local_vars_configuration is None:
|
|
47
|
+
local_vars_configuration = Configuration()
|
|
48
|
+
self.local_vars_configuration = local_vars_configuration
|
|
49
|
+
|
|
50
|
+
self._key = None
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
self.key = key
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def key(self):
|
|
57
|
+
"""Gets the key of this UnsetLabel. # noqa: E501
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
:return: The key of this UnsetLabel. # noqa: E501
|
|
61
|
+
:rtype: str
|
|
62
|
+
"""
|
|
63
|
+
return self._key
|
|
64
|
+
|
|
65
|
+
@key.setter
|
|
66
|
+
def key(self, key):
|
|
67
|
+
"""Sets the key of this UnsetLabel.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:param key: The key of this UnsetLabel. # noqa: E501
|
|
71
|
+
:type: str
|
|
72
|
+
"""
|
|
73
|
+
if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
|
|
74
|
+
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
|
|
75
|
+
if (self.local_vars_configuration.client_side_validation and
|
|
76
|
+
key is not None and len(key) < 1):
|
|
77
|
+
raise ValueError("Invalid value for `key`, length must be greater than or equal to `1`") # noqa: E501
|
|
78
|
+
if (self.local_vars_configuration.client_side_validation and
|
|
79
|
+
key is not None and not re.search(r'^[-a-zA-Z0-9_]+$', key)): # noqa: E501
|
|
80
|
+
raise ValueError(r"Invalid value for `key`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501
|
|
81
|
+
|
|
82
|
+
self._key = key
|
|
83
|
+
|
|
84
|
+
def to_dict(self):
|
|
85
|
+
"""Returns the model properties as a dict"""
|
|
86
|
+
result = {}
|
|
87
|
+
|
|
88
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
89
|
+
value = getattr(self, attr)
|
|
90
|
+
if isinstance(value, list):
|
|
91
|
+
result[attr] = list(map(
|
|
92
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
93
|
+
value
|
|
94
|
+
))
|
|
95
|
+
elif hasattr(value, "to_dict"):
|
|
96
|
+
result[attr] = value.to_dict()
|
|
97
|
+
elif isinstance(value, dict):
|
|
98
|
+
result[attr] = dict(map(
|
|
99
|
+
lambda item: (item[0], item[1].to_dict())
|
|
100
|
+
if hasattr(item[1], "to_dict") else item,
|
|
101
|
+
value.items()
|
|
102
|
+
))
|
|
103
|
+
else:
|
|
104
|
+
result[attr] = value
|
|
105
|
+
|
|
106
|
+
return result
|
|
107
|
+
|
|
108
|
+
def to_str(self):
|
|
109
|
+
"""Returns the string representation of the model"""
|
|
110
|
+
return pprint.pformat(self.to_dict())
|
|
111
|
+
|
|
112
|
+
def __repr__(self):
|
|
113
|
+
"""For `print` and `pprint`"""
|
|
114
|
+
return self.to_str()
|
|
115
|
+
|
|
116
|
+
def __eq__(self, other):
|
|
117
|
+
"""Returns true if both objects are equal"""
|
|
118
|
+
if not isinstance(other, UnsetLabel):
|
|
119
|
+
return False
|
|
120
|
+
|
|
121
|
+
return self.to_dict() == other.to_dict()
|
|
122
|
+
|
|
123
|
+
def __ne__(self, other):
|
|
124
|
+
"""Returns true if both objects are not equal"""
|
|
125
|
+
if not isinstance(other, UnsetLabel):
|
|
126
|
+
return True
|
|
127
|
+
|
|
128
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pulp 3 API
|
|
5
|
+
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3
|
|
9
|
+
Contact: pulp-list@redhat.com
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from pulpcore.client.pulp_python.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class UnsetLabelResponse(object):
|
|
23
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
24
|
+
Ref: https://openapi-generator.tech
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
Attributes:
|
|
31
|
+
openapi_types (dict): The key is attribute name
|
|
32
|
+
and the value is attribute type.
|
|
33
|
+
attribute_map (dict): The key is attribute name
|
|
34
|
+
and the value is json key in definition.
|
|
35
|
+
"""
|
|
36
|
+
openapi_types = {
|
|
37
|
+
'key': 'str',
|
|
38
|
+
'value': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'key': 'key',
|
|
43
|
+
'value': 'value'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
def __init__(self, key=None, value=None, local_vars_configuration=None): # noqa: E501
|
|
47
|
+
"""UnsetLabelResponse - a model defined in OpenAPI""" # noqa: E501
|
|
48
|
+
if local_vars_configuration is None:
|
|
49
|
+
local_vars_configuration = Configuration()
|
|
50
|
+
self.local_vars_configuration = local_vars_configuration
|
|
51
|
+
|
|
52
|
+
self._key = None
|
|
53
|
+
self._value = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
self.key = key
|
|
57
|
+
if value is not None:
|
|
58
|
+
self.value = value
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def key(self):
|
|
62
|
+
"""Gets the key of this UnsetLabelResponse. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The key of this UnsetLabelResponse. # noqa: E501
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._key
|
|
69
|
+
|
|
70
|
+
@key.setter
|
|
71
|
+
def key(self, key):
|
|
72
|
+
"""Sets the key of this UnsetLabelResponse.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param key: The key of this UnsetLabelResponse. # noqa: E501
|
|
76
|
+
:type: str
|
|
77
|
+
"""
|
|
78
|
+
if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
|
|
79
|
+
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
|
|
80
|
+
if (self.local_vars_configuration.client_side_validation and
|
|
81
|
+
key is not None and not re.search(r'^[-a-zA-Z0-9_]+$', key)): # noqa: E501
|
|
82
|
+
raise ValueError(r"Invalid value for `key`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501
|
|
83
|
+
|
|
84
|
+
self._key = key
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def value(self):
|
|
88
|
+
"""Gets the value of this UnsetLabelResponse. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The value of this UnsetLabelResponse. # noqa: E501
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._value
|
|
95
|
+
|
|
96
|
+
@value.setter
|
|
97
|
+
def value(self, value):
|
|
98
|
+
"""Sets the value of this UnsetLabelResponse.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param value: The value of this UnsetLabelResponse. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._value = value
|
|
106
|
+
|
|
107
|
+
def to_dict(self):
|
|
108
|
+
"""Returns the model properties as a dict"""
|
|
109
|
+
result = {}
|
|
110
|
+
|
|
111
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
112
|
+
value = getattr(self, attr)
|
|
113
|
+
if isinstance(value, list):
|
|
114
|
+
result[attr] = list(map(
|
|
115
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
116
|
+
value
|
|
117
|
+
))
|
|
118
|
+
elif hasattr(value, "to_dict"):
|
|
119
|
+
result[attr] = value.to_dict()
|
|
120
|
+
elif isinstance(value, dict):
|
|
121
|
+
result[attr] = dict(map(
|
|
122
|
+
lambda item: (item[0], item[1].to_dict())
|
|
123
|
+
if hasattr(item[1], "to_dict") else item,
|
|
124
|
+
value.items()
|
|
125
|
+
))
|
|
126
|
+
else:
|
|
127
|
+
result[attr] = value
|
|
128
|
+
|
|
129
|
+
return result
|
|
130
|
+
|
|
131
|
+
def to_str(self):
|
|
132
|
+
"""Returns the string representation of the model"""
|
|
133
|
+
return pprint.pformat(self.to_dict())
|
|
134
|
+
|
|
135
|
+
def __repr__(self):
|
|
136
|
+
"""For `print` and `pprint`"""
|
|
137
|
+
return self.to_str()
|
|
138
|
+
|
|
139
|
+
def __eq__(self, other):
|
|
140
|
+
"""Returns true if both objects are equal"""
|
|
141
|
+
if not isinstance(other, UnsetLabelResponse):
|
|
142
|
+
return False
|
|
143
|
+
|
|
144
|
+
return self.to_dict() == other.to_dict()
|
|
145
|
+
|
|
146
|
+
def __ne__(self, other):
|
|
147
|
+
"""Returns true if both objects are not equal"""
|
|
148
|
+
if not isinstance(other, UnsetLabelResponse):
|
|
149
|
+
return True
|
|
150
|
+
|
|
151
|
+
return self.to_dict() != other.to_dict()
|
|
File without changes
|