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
|
@@ -36,6 +36,7 @@ class PatchedpythonPythonDistribution(object):
|
|
|
36
36
|
openapi_types = {
|
|
37
37
|
'base_path': 'str',
|
|
38
38
|
'content_guard': 'str',
|
|
39
|
+
'hidden': 'bool',
|
|
39
40
|
'pulp_labels': 'dict(str, str)',
|
|
40
41
|
'name': 'str',
|
|
41
42
|
'repository': 'str',
|
|
@@ -47,6 +48,7 @@ class PatchedpythonPythonDistribution(object):
|
|
|
47
48
|
attribute_map = {
|
|
48
49
|
'base_path': 'base_path',
|
|
49
50
|
'content_guard': 'content_guard',
|
|
51
|
+
'hidden': 'hidden',
|
|
50
52
|
'pulp_labels': 'pulp_labels',
|
|
51
53
|
'name': 'name',
|
|
52
54
|
'repository': 'repository',
|
|
@@ -55,7 +57,7 @@ class PatchedpythonPythonDistribution(object):
|
|
|
55
57
|
'remote': 'remote'
|
|
56
58
|
}
|
|
57
59
|
|
|
58
|
-
def __init__(self, base_path=None, content_guard=None, pulp_labels=None, name=None, repository=None, publication=None, allow_uploads=True, remote=None, local_vars_configuration=None): # noqa: E501
|
|
60
|
+
def __init__(self, base_path=None, content_guard=None, hidden=False, pulp_labels=None, name=None, repository=None, publication=None, allow_uploads=True, remote=None, local_vars_configuration=None): # noqa: E501
|
|
59
61
|
"""PatchedpythonPythonDistribution - a model defined in OpenAPI""" # noqa: E501
|
|
60
62
|
if local_vars_configuration is None:
|
|
61
63
|
local_vars_configuration = Configuration()
|
|
@@ -63,6 +65,7 @@ class PatchedpythonPythonDistribution(object):
|
|
|
63
65
|
|
|
64
66
|
self._base_path = None
|
|
65
67
|
self._content_guard = None
|
|
68
|
+
self._hidden = None
|
|
66
69
|
self._pulp_labels = None
|
|
67
70
|
self._name = None
|
|
68
71
|
self._repository = None
|
|
@@ -74,6 +77,8 @@ class PatchedpythonPythonDistribution(object):
|
|
|
74
77
|
if base_path is not None:
|
|
75
78
|
self.base_path = base_path
|
|
76
79
|
self.content_guard = content_guard
|
|
80
|
+
if hidden is not None:
|
|
81
|
+
self.hidden = hidden
|
|
77
82
|
if pulp_labels is not None:
|
|
78
83
|
self.pulp_labels = pulp_labels
|
|
79
84
|
if name is not None:
|
|
@@ -133,6 +138,29 @@ class PatchedpythonPythonDistribution(object):
|
|
|
133
138
|
|
|
134
139
|
self._content_guard = content_guard
|
|
135
140
|
|
|
141
|
+
@property
|
|
142
|
+
def hidden(self):
|
|
143
|
+
"""Gets the hidden of this PatchedpythonPythonDistribution. # noqa: E501
|
|
144
|
+
|
|
145
|
+
Whether this distribution should be shown in the content app. # noqa: E501
|
|
146
|
+
|
|
147
|
+
:return: The hidden of this PatchedpythonPythonDistribution. # noqa: E501
|
|
148
|
+
:rtype: bool
|
|
149
|
+
"""
|
|
150
|
+
return self._hidden
|
|
151
|
+
|
|
152
|
+
@hidden.setter
|
|
153
|
+
def hidden(self, hidden):
|
|
154
|
+
"""Sets the hidden of this PatchedpythonPythonDistribution.
|
|
155
|
+
|
|
156
|
+
Whether this distribution should be shown in the content app. # noqa: E501
|
|
157
|
+
|
|
158
|
+
:param hidden: The hidden of this PatchedpythonPythonDistribution. # noqa: E501
|
|
159
|
+
:type: bool
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
self._hidden = hidden
|
|
163
|
+
|
|
136
164
|
@property
|
|
137
165
|
def pulp_labels(self):
|
|
138
166
|
"""Gets the pulp_labels of this PatchedpythonPythonDistribution. # noqa: E501
|
|
@@ -36,6 +36,7 @@ class PythonPythonDistribution(object):
|
|
|
36
36
|
openapi_types = {
|
|
37
37
|
'base_path': 'str',
|
|
38
38
|
'content_guard': 'str',
|
|
39
|
+
'hidden': 'bool',
|
|
39
40
|
'pulp_labels': 'dict(str, str)',
|
|
40
41
|
'name': 'str',
|
|
41
42
|
'repository': 'str',
|
|
@@ -47,6 +48,7 @@ class PythonPythonDistribution(object):
|
|
|
47
48
|
attribute_map = {
|
|
48
49
|
'base_path': 'base_path',
|
|
49
50
|
'content_guard': 'content_guard',
|
|
51
|
+
'hidden': 'hidden',
|
|
50
52
|
'pulp_labels': 'pulp_labels',
|
|
51
53
|
'name': 'name',
|
|
52
54
|
'repository': 'repository',
|
|
@@ -55,7 +57,7 @@ class PythonPythonDistribution(object):
|
|
|
55
57
|
'remote': 'remote'
|
|
56
58
|
}
|
|
57
59
|
|
|
58
|
-
def __init__(self, base_path=None, content_guard=None, pulp_labels=None, name=None, repository=None, publication=None, allow_uploads=True, remote=None, local_vars_configuration=None): # noqa: E501
|
|
60
|
+
def __init__(self, base_path=None, content_guard=None, hidden=False, pulp_labels=None, name=None, repository=None, publication=None, allow_uploads=True, remote=None, local_vars_configuration=None): # noqa: E501
|
|
59
61
|
"""PythonPythonDistribution - a model defined in OpenAPI""" # noqa: E501
|
|
60
62
|
if local_vars_configuration is None:
|
|
61
63
|
local_vars_configuration = Configuration()
|
|
@@ -63,6 +65,7 @@ class PythonPythonDistribution(object):
|
|
|
63
65
|
|
|
64
66
|
self._base_path = None
|
|
65
67
|
self._content_guard = None
|
|
68
|
+
self._hidden = None
|
|
66
69
|
self._pulp_labels = None
|
|
67
70
|
self._name = None
|
|
68
71
|
self._repository = None
|
|
@@ -73,6 +76,8 @@ class PythonPythonDistribution(object):
|
|
|
73
76
|
|
|
74
77
|
self.base_path = base_path
|
|
75
78
|
self.content_guard = content_guard
|
|
79
|
+
if hidden is not None:
|
|
80
|
+
self.hidden = hidden
|
|
76
81
|
if pulp_labels is not None:
|
|
77
82
|
self.pulp_labels = pulp_labels
|
|
78
83
|
self.name = name
|
|
@@ -133,6 +138,29 @@ class PythonPythonDistribution(object):
|
|
|
133
138
|
|
|
134
139
|
self._content_guard = content_guard
|
|
135
140
|
|
|
141
|
+
@property
|
|
142
|
+
def hidden(self):
|
|
143
|
+
"""Gets the hidden of this PythonPythonDistribution. # noqa: E501
|
|
144
|
+
|
|
145
|
+
Whether this distribution should be shown in the content app. # noqa: E501
|
|
146
|
+
|
|
147
|
+
:return: The hidden of this PythonPythonDistribution. # noqa: E501
|
|
148
|
+
:rtype: bool
|
|
149
|
+
"""
|
|
150
|
+
return self._hidden
|
|
151
|
+
|
|
152
|
+
@hidden.setter
|
|
153
|
+
def hidden(self, hidden):
|
|
154
|
+
"""Sets the hidden of this PythonPythonDistribution.
|
|
155
|
+
|
|
156
|
+
Whether this distribution should be shown in the content app. # noqa: E501
|
|
157
|
+
|
|
158
|
+
:param hidden: The hidden of this PythonPythonDistribution. # noqa: E501
|
|
159
|
+
:type: bool
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
self._hidden = hidden
|
|
163
|
+
|
|
136
164
|
@property
|
|
137
165
|
def pulp_labels(self):
|
|
138
166
|
"""Gets the pulp_labels of this PythonPythonDistribution. # noqa: E501
|
|
@@ -39,6 +39,7 @@ class PythonPythonDistributionResponse(object):
|
|
|
39
39
|
'base_path': 'str',
|
|
40
40
|
'base_url': 'str',
|
|
41
41
|
'content_guard': 'str',
|
|
42
|
+
'hidden': 'bool',
|
|
42
43
|
'pulp_labels': 'dict(str, str)',
|
|
43
44
|
'name': 'str',
|
|
44
45
|
'repository': 'str',
|
|
@@ -53,6 +54,7 @@ class PythonPythonDistributionResponse(object):
|
|
|
53
54
|
'base_path': 'base_path',
|
|
54
55
|
'base_url': 'base_url',
|
|
55
56
|
'content_guard': 'content_guard',
|
|
57
|
+
'hidden': 'hidden',
|
|
56
58
|
'pulp_labels': 'pulp_labels',
|
|
57
59
|
'name': 'name',
|
|
58
60
|
'repository': 'repository',
|
|
@@ -61,7 +63,7 @@ class PythonPythonDistributionResponse(object):
|
|
|
61
63
|
'remote': 'remote'
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
def __init__(self, pulp_href=None, pulp_created=None, base_path=None, base_url=None, content_guard=None, pulp_labels=None, name=None, repository=None, publication=None, allow_uploads=True, remote=None, local_vars_configuration=None): # noqa: E501
|
|
66
|
+
def __init__(self, pulp_href=None, pulp_created=None, base_path=None, base_url=None, content_guard=None, hidden=False, pulp_labels=None, name=None, repository=None, publication=None, allow_uploads=True, remote=None, local_vars_configuration=None): # noqa: E501
|
|
65
67
|
"""PythonPythonDistributionResponse - a model defined in OpenAPI""" # noqa: E501
|
|
66
68
|
if local_vars_configuration is None:
|
|
67
69
|
local_vars_configuration = Configuration()
|
|
@@ -72,6 +74,7 @@ class PythonPythonDistributionResponse(object):
|
|
|
72
74
|
self._base_path = None
|
|
73
75
|
self._base_url = None
|
|
74
76
|
self._content_guard = None
|
|
77
|
+
self._hidden = None
|
|
75
78
|
self._pulp_labels = None
|
|
76
79
|
self._name = None
|
|
77
80
|
self._repository = None
|
|
@@ -88,6 +91,8 @@ class PythonPythonDistributionResponse(object):
|
|
|
88
91
|
if base_url is not None:
|
|
89
92
|
self.base_url = base_url
|
|
90
93
|
self.content_guard = content_guard
|
|
94
|
+
if hidden is not None:
|
|
95
|
+
self.hidden = hidden
|
|
91
96
|
if pulp_labels is not None:
|
|
92
97
|
self.pulp_labels = pulp_labels
|
|
93
98
|
self.name = name
|
|
@@ -210,6 +215,29 @@ class PythonPythonDistributionResponse(object):
|
|
|
210
215
|
|
|
211
216
|
self._content_guard = content_guard
|
|
212
217
|
|
|
218
|
+
@property
|
|
219
|
+
def hidden(self):
|
|
220
|
+
"""Gets the hidden of this PythonPythonDistributionResponse. # noqa: E501
|
|
221
|
+
|
|
222
|
+
Whether this distribution should be shown in the content app. # noqa: E501
|
|
223
|
+
|
|
224
|
+
:return: The hidden of this PythonPythonDistributionResponse. # noqa: E501
|
|
225
|
+
:rtype: bool
|
|
226
|
+
"""
|
|
227
|
+
return self._hidden
|
|
228
|
+
|
|
229
|
+
@hidden.setter
|
|
230
|
+
def hidden(self, hidden):
|
|
231
|
+
"""Sets the hidden of this PythonPythonDistributionResponse.
|
|
232
|
+
|
|
233
|
+
Whether this distribution should be shown in the content app. # noqa: E501
|
|
234
|
+
|
|
235
|
+
:param hidden: The hidden of this PythonPythonDistributionResponse. # noqa: E501
|
|
236
|
+
:type: bool
|
|
237
|
+
"""
|
|
238
|
+
|
|
239
|
+
self._hidden = hidden
|
|
240
|
+
|
|
213
241
|
@property
|
|
214
242
|
def pulp_labels(self):
|
|
215
243
|
"""Gets the pulp_labels of this PythonPythonDistributionResponse. # noqa: E501
|
|
@@ -34,10 +34,10 @@ class PythonPythonPackageContent(object):
|
|
|
34
34
|
and the value is json key in definition.
|
|
35
35
|
"""
|
|
36
36
|
openapi_types = {
|
|
37
|
+
'repository': 'str',
|
|
37
38
|
'artifact': 'str',
|
|
38
39
|
'relative_path': 'str',
|
|
39
40
|
'file': 'file',
|
|
40
|
-
'repository': 'str',
|
|
41
41
|
'upload': 'str',
|
|
42
42
|
'sha256': 'str',
|
|
43
43
|
'summary': 'str',
|
|
@@ -64,10 +64,10 @@ class PythonPythonPackageContent(object):
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
attribute_map = {
|
|
67
|
+
'repository': 'repository',
|
|
67
68
|
'artifact': 'artifact',
|
|
68
69
|
'relative_path': 'relative_path',
|
|
69
70
|
'file': 'file',
|
|
70
|
-
'repository': 'repository',
|
|
71
71
|
'upload': 'upload',
|
|
72
72
|
'sha256': 'sha256',
|
|
73
73
|
'summary': 'summary',
|
|
@@ -93,16 +93,16 @@ class PythonPythonPackageContent(object):
|
|
|
93
93
|
'classifiers': 'classifiers'
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
def __init__(self,
|
|
96
|
+
def __init__(self, repository=None, artifact=None, relative_path=None, file=None, upload=None, sha256='', summary=None, description=None, description_content_type=None, keywords=None, home_page=None, download_url=None, author=None, author_email=None, maintainer=None, maintainer_email=None, license=None, requires_python=None, project_url=None, project_urls=None, platform=None, supported_platform=None, requires_dist=None, provides_dist=None, obsoletes_dist=None, requires_external=None, classifiers=None, local_vars_configuration=None): # noqa: E501
|
|
97
97
|
"""PythonPythonPackageContent - a model defined in OpenAPI""" # noqa: E501
|
|
98
98
|
if local_vars_configuration is None:
|
|
99
99
|
local_vars_configuration = Configuration()
|
|
100
100
|
self.local_vars_configuration = local_vars_configuration
|
|
101
101
|
|
|
102
|
+
self._repository = None
|
|
102
103
|
self._artifact = None
|
|
103
104
|
self._relative_path = None
|
|
104
105
|
self._file = None
|
|
105
|
-
self._repository = None
|
|
106
106
|
self._upload = None
|
|
107
107
|
self._sha256 = None
|
|
108
108
|
self._summary = None
|
|
@@ -128,13 +128,13 @@ class PythonPythonPackageContent(object):
|
|
|
128
128
|
self._classifiers = None
|
|
129
129
|
self.discriminator = None
|
|
130
130
|
|
|
131
|
+
if repository is not None:
|
|
132
|
+
self.repository = repository
|
|
131
133
|
if artifact is not None:
|
|
132
134
|
self.artifact = artifact
|
|
133
135
|
self.relative_path = relative_path
|
|
134
136
|
if file is not None:
|
|
135
137
|
self.file = file
|
|
136
|
-
if repository is not None:
|
|
137
|
-
self.repository = repository
|
|
138
138
|
if upload is not None:
|
|
139
139
|
self.upload = upload
|
|
140
140
|
if sha256 is not None:
|
|
@@ -182,6 +182,29 @@ class PythonPythonPackageContent(object):
|
|
|
182
182
|
if classifiers is not None:
|
|
183
183
|
self.classifiers = classifiers
|
|
184
184
|
|
|
185
|
+
@property
|
|
186
|
+
def repository(self):
|
|
187
|
+
"""Gets the repository of this PythonPythonPackageContent. # noqa: E501
|
|
188
|
+
|
|
189
|
+
A URI of a repository the new content unit should be associated with. # noqa: E501
|
|
190
|
+
|
|
191
|
+
:return: The repository of this PythonPythonPackageContent. # noqa: E501
|
|
192
|
+
:rtype: str
|
|
193
|
+
"""
|
|
194
|
+
return self._repository
|
|
195
|
+
|
|
196
|
+
@repository.setter
|
|
197
|
+
def repository(self, repository):
|
|
198
|
+
"""Sets the repository of this PythonPythonPackageContent.
|
|
199
|
+
|
|
200
|
+
A URI of a repository the new content unit should be associated with. # noqa: E501
|
|
201
|
+
|
|
202
|
+
:param repository: The repository of this PythonPythonPackageContent. # noqa: E501
|
|
203
|
+
:type: str
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
self._repository = repository
|
|
207
|
+
|
|
185
208
|
@property
|
|
186
209
|
def artifact(self):
|
|
187
210
|
"""Gets the artifact of this PythonPythonPackageContent. # noqa: E501
|
|
@@ -256,29 +279,6 @@ class PythonPythonPackageContent(object):
|
|
|
256
279
|
|
|
257
280
|
self._file = file
|
|
258
281
|
|
|
259
|
-
@property
|
|
260
|
-
def repository(self):
|
|
261
|
-
"""Gets the repository of this PythonPythonPackageContent. # noqa: E501
|
|
262
|
-
|
|
263
|
-
A URI of a repository the new content unit should be associated with. # noqa: E501
|
|
264
|
-
|
|
265
|
-
:return: The repository of this PythonPythonPackageContent. # noqa: E501
|
|
266
|
-
:rtype: str
|
|
267
|
-
"""
|
|
268
|
-
return self._repository
|
|
269
|
-
|
|
270
|
-
@repository.setter
|
|
271
|
-
def repository(self, repository):
|
|
272
|
-
"""Sets the repository of this PythonPythonPackageContent.
|
|
273
|
-
|
|
274
|
-
A URI of a repository the new content unit should be associated with. # noqa: E501
|
|
275
|
-
|
|
276
|
-
:param repository: The repository of this PythonPythonPackageContent. # noqa: E501
|
|
277
|
-
:type: str
|
|
278
|
-
"""
|
|
279
|
-
|
|
280
|
-
self._repository = repository
|
|
281
|
-
|
|
282
282
|
@property
|
|
283
283
|
def upload(self):
|
|
284
284
|
"""Gets the upload of this PythonPythonPackageContent. # noqa: E501
|
|
@@ -53,10 +53,8 @@ class PythonPythonRemoteResponseHiddenFields(object):
|
|
|
53
53
|
self._is_set = None
|
|
54
54
|
self.discriminator = None
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if is_set is not None:
|
|
59
|
-
self.is_set = is_set
|
|
56
|
+
self.name = name
|
|
57
|
+
self.is_set = is_set
|
|
60
58
|
|
|
61
59
|
@property
|
|
62
60
|
def name(self):
|
|
@@ -76,6 +74,8 @@ class PythonPythonRemoteResponseHiddenFields(object):
|
|
|
76
74
|
:param name: The name of this PythonPythonRemoteResponseHiddenFields. # noqa: E501
|
|
77
75
|
:type: str
|
|
78
76
|
"""
|
|
77
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
78
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
79
79
|
|
|
80
80
|
self._name = name
|
|
81
81
|
|
|
@@ -97,6 +97,8 @@ class PythonPythonRemoteResponseHiddenFields(object):
|
|
|
97
97
|
:param is_set: The is_set of this PythonPythonRemoteResponseHiddenFields. # noqa: E501
|
|
98
98
|
:type: bool
|
|
99
99
|
"""
|
|
100
|
+
if self.local_vars_configuration.client_side_validation and is_set is None: # noqa: E501
|
|
101
|
+
raise ValueError("Invalid value for `is_set`, must not be `None`") # noqa: E501
|
|
100
102
|
|
|
101
103
|
self._is_set = is_set
|
|
102
104
|
|
|
@@ -0,0 +1,153 @@
|
|
|
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 SetLabel(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
|
+
"""SetLabel - 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
|
+
self.value = value
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def key(self):
|
|
61
|
+
"""Gets the key of this SetLabel. # noqa: E501
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:return: The key of this SetLabel. # noqa: E501
|
|
65
|
+
:rtype: str
|
|
66
|
+
"""
|
|
67
|
+
return self._key
|
|
68
|
+
|
|
69
|
+
@key.setter
|
|
70
|
+
def key(self, key):
|
|
71
|
+
"""Sets the key of this SetLabel.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:param key: The key of this SetLabel. # noqa: E501
|
|
75
|
+
:type: str
|
|
76
|
+
"""
|
|
77
|
+
if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
|
|
78
|
+
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
|
|
79
|
+
if (self.local_vars_configuration.client_side_validation and
|
|
80
|
+
key is not None and len(key) < 1):
|
|
81
|
+
raise ValueError("Invalid value for `key`, length must be greater than or equal to `1`") # noqa: E501
|
|
82
|
+
if (self.local_vars_configuration.client_side_validation and
|
|
83
|
+
key is not None and not re.search(r'^[-a-zA-Z0-9_]+$', key)): # noqa: E501
|
|
84
|
+
raise ValueError(r"Invalid value for `key`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501
|
|
85
|
+
|
|
86
|
+
self._key = key
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def value(self):
|
|
90
|
+
"""Gets the value of this SetLabel. # noqa: E501
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:return: The value of this SetLabel. # noqa: E501
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._value
|
|
97
|
+
|
|
98
|
+
@value.setter
|
|
99
|
+
def value(self, value):
|
|
100
|
+
"""Sets the value of this SetLabel.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:param value: The value of this SetLabel. # noqa: E501
|
|
104
|
+
:type: str
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
self._value = value
|
|
108
|
+
|
|
109
|
+
def to_dict(self):
|
|
110
|
+
"""Returns the model properties as a dict"""
|
|
111
|
+
result = {}
|
|
112
|
+
|
|
113
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
114
|
+
value = getattr(self, attr)
|
|
115
|
+
if isinstance(value, list):
|
|
116
|
+
result[attr] = list(map(
|
|
117
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
118
|
+
value
|
|
119
|
+
))
|
|
120
|
+
elif hasattr(value, "to_dict"):
|
|
121
|
+
result[attr] = value.to_dict()
|
|
122
|
+
elif isinstance(value, dict):
|
|
123
|
+
result[attr] = dict(map(
|
|
124
|
+
lambda item: (item[0], item[1].to_dict())
|
|
125
|
+
if hasattr(item[1], "to_dict") else item,
|
|
126
|
+
value.items()
|
|
127
|
+
))
|
|
128
|
+
else:
|
|
129
|
+
result[attr] = value
|
|
130
|
+
|
|
131
|
+
return result
|
|
132
|
+
|
|
133
|
+
def to_str(self):
|
|
134
|
+
"""Returns the string representation of the model"""
|
|
135
|
+
return pprint.pformat(self.to_dict())
|
|
136
|
+
|
|
137
|
+
def __repr__(self):
|
|
138
|
+
"""For `print` and `pprint`"""
|
|
139
|
+
return self.to_str()
|
|
140
|
+
|
|
141
|
+
def __eq__(self, other):
|
|
142
|
+
"""Returns true if both objects are equal"""
|
|
143
|
+
if not isinstance(other, SetLabel):
|
|
144
|
+
return False
|
|
145
|
+
|
|
146
|
+
return self.to_dict() == other.to_dict()
|
|
147
|
+
|
|
148
|
+
def __ne__(self, other):
|
|
149
|
+
"""Returns true if both objects are not equal"""
|
|
150
|
+
if not isinstance(other, SetLabel):
|
|
151
|
+
return True
|
|
152
|
+
|
|
153
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,150 @@
|
|
|
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 SetLabelResponse(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
|
+
"""SetLabelResponse - 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
|
+
self.value = value
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def key(self):
|
|
61
|
+
"""Gets the key of this SetLabelResponse. # noqa: E501
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:return: The key of this SetLabelResponse. # noqa: E501
|
|
65
|
+
:rtype: str
|
|
66
|
+
"""
|
|
67
|
+
return self._key
|
|
68
|
+
|
|
69
|
+
@key.setter
|
|
70
|
+
def key(self, key):
|
|
71
|
+
"""Sets the key of this SetLabelResponse.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:param key: The key of this SetLabelResponse. # noqa: E501
|
|
75
|
+
:type: str
|
|
76
|
+
"""
|
|
77
|
+
if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
|
|
78
|
+
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
|
|
79
|
+
if (self.local_vars_configuration.client_side_validation and
|
|
80
|
+
key is not None and not re.search(r'^[-a-zA-Z0-9_]+$', key)): # noqa: E501
|
|
81
|
+
raise ValueError(r"Invalid value for `key`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501
|
|
82
|
+
|
|
83
|
+
self._key = key
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def value(self):
|
|
87
|
+
"""Gets the value of this SetLabelResponse. # noqa: E501
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:return: The value of this SetLabelResponse. # noqa: E501
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._value
|
|
94
|
+
|
|
95
|
+
@value.setter
|
|
96
|
+
def value(self, value):
|
|
97
|
+
"""Sets the value of this SetLabelResponse.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:param value: The value of this SetLabelResponse. # noqa: E501
|
|
101
|
+
:type: str
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
self._value = value
|
|
105
|
+
|
|
106
|
+
def to_dict(self):
|
|
107
|
+
"""Returns the model properties as a dict"""
|
|
108
|
+
result = {}
|
|
109
|
+
|
|
110
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
111
|
+
value = getattr(self, attr)
|
|
112
|
+
if isinstance(value, list):
|
|
113
|
+
result[attr] = list(map(
|
|
114
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
115
|
+
value
|
|
116
|
+
))
|
|
117
|
+
elif hasattr(value, "to_dict"):
|
|
118
|
+
result[attr] = value.to_dict()
|
|
119
|
+
elif isinstance(value, dict):
|
|
120
|
+
result[attr] = dict(map(
|
|
121
|
+
lambda item: (item[0], item[1].to_dict())
|
|
122
|
+
if hasattr(item[1], "to_dict") else item,
|
|
123
|
+
value.items()
|
|
124
|
+
))
|
|
125
|
+
else:
|
|
126
|
+
result[attr] = value
|
|
127
|
+
|
|
128
|
+
return result
|
|
129
|
+
|
|
130
|
+
def to_str(self):
|
|
131
|
+
"""Returns the string representation of the model"""
|
|
132
|
+
return pprint.pformat(self.to_dict())
|
|
133
|
+
|
|
134
|
+
def __repr__(self):
|
|
135
|
+
"""For `print` and `pprint`"""
|
|
136
|
+
return self.to_str()
|
|
137
|
+
|
|
138
|
+
def __eq__(self, other):
|
|
139
|
+
"""Returns true if both objects are equal"""
|
|
140
|
+
if not isinstance(other, SetLabelResponse):
|
|
141
|
+
return False
|
|
142
|
+
|
|
143
|
+
return self.to_dict() == other.to_dict()
|
|
144
|
+
|
|
145
|
+
def __ne__(self, other):
|
|
146
|
+
"""Returns true if both objects are not equal"""
|
|
147
|
+
if not isinstance(other, SetLabelResponse):
|
|
148
|
+
return True
|
|
149
|
+
|
|
150
|
+
return self.to_dict() != other.to_dict()
|