pulp-python-client 3.10.0__py3-none-any.whl → 3.11.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.11.1.dist-info}/METADATA +6 -8
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.11.1.dist-info}/RECORD +34 -30
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.11.1.dist-info}/WHEEL +1 -1
- pulpcore/client/pulp_python/__init__.py +5 -1
- pulpcore/client/pulp_python/api/content_packages_api.py +19 -9
- 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 +57 -1
- pulpcore/client/pulp_python/models/python_python_package_content.py +33 -33
- pulpcore/client/pulp_python/models/python_python_package_content_response.py +29 -1
- pulpcore/client/pulp_python/models/python_python_publication_response.py +29 -1
- pulpcore/client/pulp_python/models/python_python_remote_response.py +29 -29
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +6 -4
- pulpcore/client/pulp_python/models/python_python_repository_response.py +29 -1
- pulpcore/client/pulp_python/models/repository_version_response.py +29 -1
- 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.11.1.dist-info}/top_level.txt +0 -0
|
@@ -36,6 +36,7 @@ class PythonPythonRemoteResponse(object):
|
|
|
36
36
|
openapi_types = {
|
|
37
37
|
'pulp_href': 'str',
|
|
38
38
|
'pulp_created': 'datetime',
|
|
39
|
+
'pulp_last_updated': 'datetime',
|
|
39
40
|
'name': 'str',
|
|
40
41
|
'url': 'str',
|
|
41
42
|
'ca_cert': 'str',
|
|
@@ -43,7 +44,6 @@ class PythonPythonRemoteResponse(object):
|
|
|
43
44
|
'tls_validation': 'bool',
|
|
44
45
|
'proxy_url': 'str',
|
|
45
46
|
'pulp_labels': 'dict(str, str)',
|
|
46
|
-
'pulp_last_updated': 'datetime',
|
|
47
47
|
'download_concurrency': 'int',
|
|
48
48
|
'max_retries': 'int',
|
|
49
49
|
'policy': 'PolicyEnum',
|
|
@@ -65,6 +65,7 @@ class PythonPythonRemoteResponse(object):
|
|
|
65
65
|
attribute_map = {
|
|
66
66
|
'pulp_href': 'pulp_href',
|
|
67
67
|
'pulp_created': 'pulp_created',
|
|
68
|
+
'pulp_last_updated': 'pulp_last_updated',
|
|
68
69
|
'name': 'name',
|
|
69
70
|
'url': 'url',
|
|
70
71
|
'ca_cert': 'ca_cert',
|
|
@@ -72,7 +73,6 @@ class PythonPythonRemoteResponse(object):
|
|
|
72
73
|
'tls_validation': 'tls_validation',
|
|
73
74
|
'proxy_url': 'proxy_url',
|
|
74
75
|
'pulp_labels': 'pulp_labels',
|
|
75
|
-
'pulp_last_updated': 'pulp_last_updated',
|
|
76
76
|
'download_concurrency': 'download_concurrency',
|
|
77
77
|
'max_retries': 'max_retries',
|
|
78
78
|
'policy': 'policy',
|
|
@@ -91,7 +91,7 @@ class PythonPythonRemoteResponse(object):
|
|
|
91
91
|
'exclude_platforms': 'exclude_platforms'
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
def __init__(self, pulp_href=None, pulp_created=None, name=None, url=None, ca_cert=None, client_cert=None, tls_validation=None, proxy_url=None, pulp_labels=None,
|
|
94
|
+
def __init__(self, pulp_href=None, pulp_created=None, pulp_last_updated=None, name=None, url=None, ca_cert=None, client_cert=None, tls_validation=None, proxy_url=None, pulp_labels=None, download_concurrency=None, max_retries=None, policy=None, total_timeout=None, connect_timeout=None, sock_connect_timeout=None, sock_read_timeout=None, headers=None, rate_limit=None, hidden_fields=None, includes=None, excludes=None, prereleases=None, package_types=None, keep_latest_packages=0, exclude_platforms=None, local_vars_configuration=None): # noqa: E501
|
|
95
95
|
"""PythonPythonRemoteResponse - a model defined in OpenAPI""" # noqa: E501
|
|
96
96
|
if local_vars_configuration is None:
|
|
97
97
|
local_vars_configuration = Configuration()
|
|
@@ -99,6 +99,7 @@ class PythonPythonRemoteResponse(object):
|
|
|
99
99
|
|
|
100
100
|
self._pulp_href = None
|
|
101
101
|
self._pulp_created = None
|
|
102
|
+
self._pulp_last_updated = None
|
|
102
103
|
self._name = None
|
|
103
104
|
self._url = None
|
|
104
105
|
self._ca_cert = None
|
|
@@ -106,7 +107,6 @@ class PythonPythonRemoteResponse(object):
|
|
|
106
107
|
self._tls_validation = None
|
|
107
108
|
self._proxy_url = None
|
|
108
109
|
self._pulp_labels = None
|
|
109
|
-
self._pulp_last_updated = None
|
|
110
110
|
self._download_concurrency = None
|
|
111
111
|
self._max_retries = None
|
|
112
112
|
self._policy = None
|
|
@@ -129,6 +129,8 @@ class PythonPythonRemoteResponse(object):
|
|
|
129
129
|
self.pulp_href = pulp_href
|
|
130
130
|
if pulp_created is not None:
|
|
131
131
|
self.pulp_created = pulp_created
|
|
132
|
+
if pulp_last_updated is not None:
|
|
133
|
+
self.pulp_last_updated = pulp_last_updated
|
|
132
134
|
self.name = name
|
|
133
135
|
self.url = url
|
|
134
136
|
self.ca_cert = ca_cert
|
|
@@ -138,8 +140,6 @@ class PythonPythonRemoteResponse(object):
|
|
|
138
140
|
self.proxy_url = proxy_url
|
|
139
141
|
if pulp_labels is not None:
|
|
140
142
|
self.pulp_labels = pulp_labels
|
|
141
|
-
if pulp_last_updated is not None:
|
|
142
|
-
self.pulp_last_updated = pulp_last_updated
|
|
143
143
|
self.download_concurrency = download_concurrency
|
|
144
144
|
self.max_retries = max_retries
|
|
145
145
|
if policy is not None:
|
|
@@ -210,6 +210,29 @@ class PythonPythonRemoteResponse(object):
|
|
|
210
210
|
|
|
211
211
|
self._pulp_created = pulp_created
|
|
212
212
|
|
|
213
|
+
@property
|
|
214
|
+
def pulp_last_updated(self):
|
|
215
|
+
"""Gets the pulp_last_updated of this PythonPythonRemoteResponse. # noqa: E501
|
|
216
|
+
|
|
217
|
+
Timestamp of the most recent update of the remote. # noqa: E501
|
|
218
|
+
|
|
219
|
+
:return: The pulp_last_updated of this PythonPythonRemoteResponse. # noqa: E501
|
|
220
|
+
:rtype: datetime
|
|
221
|
+
"""
|
|
222
|
+
return self._pulp_last_updated
|
|
223
|
+
|
|
224
|
+
@pulp_last_updated.setter
|
|
225
|
+
def pulp_last_updated(self, pulp_last_updated):
|
|
226
|
+
"""Sets the pulp_last_updated of this PythonPythonRemoteResponse.
|
|
227
|
+
|
|
228
|
+
Timestamp of the most recent update of the remote. # noqa: E501
|
|
229
|
+
|
|
230
|
+
:param pulp_last_updated: The pulp_last_updated of this PythonPythonRemoteResponse. # noqa: E501
|
|
231
|
+
:type: datetime
|
|
232
|
+
"""
|
|
233
|
+
|
|
234
|
+
self._pulp_last_updated = pulp_last_updated
|
|
235
|
+
|
|
213
236
|
@property
|
|
214
237
|
def name(self):
|
|
215
238
|
"""Gets the name of this PythonPythonRemoteResponse. # noqa: E501
|
|
@@ -373,29 +396,6 @@ class PythonPythonRemoteResponse(object):
|
|
|
373
396
|
|
|
374
397
|
self._pulp_labels = pulp_labels
|
|
375
398
|
|
|
376
|
-
@property
|
|
377
|
-
def pulp_last_updated(self):
|
|
378
|
-
"""Gets the pulp_last_updated of this PythonPythonRemoteResponse. # noqa: E501
|
|
379
|
-
|
|
380
|
-
Timestamp of the most recent update of the remote. # noqa: E501
|
|
381
|
-
|
|
382
|
-
:return: The pulp_last_updated of this PythonPythonRemoteResponse. # noqa: E501
|
|
383
|
-
:rtype: datetime
|
|
384
|
-
"""
|
|
385
|
-
return self._pulp_last_updated
|
|
386
|
-
|
|
387
|
-
@pulp_last_updated.setter
|
|
388
|
-
def pulp_last_updated(self, pulp_last_updated):
|
|
389
|
-
"""Sets the pulp_last_updated of this PythonPythonRemoteResponse.
|
|
390
|
-
|
|
391
|
-
Timestamp of the most recent update of the remote. # noqa: E501
|
|
392
|
-
|
|
393
|
-
:param pulp_last_updated: The pulp_last_updated of this PythonPythonRemoteResponse. # noqa: E501
|
|
394
|
-
:type: datetime
|
|
395
|
-
"""
|
|
396
|
-
|
|
397
|
-
self._pulp_last_updated = pulp_last_updated
|
|
398
|
-
|
|
399
399
|
@property
|
|
400
400
|
def download_concurrency(self):
|
|
401
401
|
"""Gets the download_concurrency of this PythonPythonRemoteResponse. # 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
|
|
|
@@ -36,6 +36,7 @@ class PythonPythonRepositoryResponse(object):
|
|
|
36
36
|
openapi_types = {
|
|
37
37
|
'pulp_href': 'str',
|
|
38
38
|
'pulp_created': 'datetime',
|
|
39
|
+
'pulp_last_updated': 'datetime',
|
|
39
40
|
'versions_href': 'str',
|
|
40
41
|
'pulp_labels': 'dict(str, str)',
|
|
41
42
|
'latest_version_href': 'str',
|
|
@@ -49,6 +50,7 @@ class PythonPythonRepositoryResponse(object):
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'pulp_href': 'pulp_href',
|
|
51
52
|
'pulp_created': 'pulp_created',
|
|
53
|
+
'pulp_last_updated': 'pulp_last_updated',
|
|
52
54
|
'versions_href': 'versions_href',
|
|
53
55
|
'pulp_labels': 'pulp_labels',
|
|
54
56
|
'latest_version_href': 'latest_version_href',
|
|
@@ -59,7 +61,7 @@ class PythonPythonRepositoryResponse(object):
|
|
|
59
61
|
'autopublish': 'autopublish'
|
|
60
62
|
}
|
|
61
63
|
|
|
62
|
-
def __init__(self, pulp_href=None, pulp_created=None, versions_href=None, pulp_labels=None, latest_version_href=None, name=None, description=None, retain_repo_versions=None, remote=None, autopublish=False, local_vars_configuration=None): # noqa: E501
|
|
64
|
+
def __init__(self, pulp_href=None, pulp_created=None, pulp_last_updated=None, versions_href=None, pulp_labels=None, latest_version_href=None, name=None, description=None, retain_repo_versions=None, remote=None, autopublish=False, local_vars_configuration=None): # noqa: E501
|
|
63
65
|
"""PythonPythonRepositoryResponse - a model defined in OpenAPI""" # noqa: E501
|
|
64
66
|
if local_vars_configuration is None:
|
|
65
67
|
local_vars_configuration = Configuration()
|
|
@@ -67,6 +69,7 @@ class PythonPythonRepositoryResponse(object):
|
|
|
67
69
|
|
|
68
70
|
self._pulp_href = None
|
|
69
71
|
self._pulp_created = None
|
|
72
|
+
self._pulp_last_updated = None
|
|
70
73
|
self._versions_href = None
|
|
71
74
|
self._pulp_labels = None
|
|
72
75
|
self._latest_version_href = None
|
|
@@ -81,6 +84,8 @@ class PythonPythonRepositoryResponse(object):
|
|
|
81
84
|
self.pulp_href = pulp_href
|
|
82
85
|
if pulp_created is not None:
|
|
83
86
|
self.pulp_created = pulp_created
|
|
87
|
+
if pulp_last_updated is not None:
|
|
88
|
+
self.pulp_last_updated = pulp_last_updated
|
|
84
89
|
if versions_href is not None:
|
|
85
90
|
self.versions_href = versions_href
|
|
86
91
|
if pulp_labels is not None:
|
|
@@ -138,6 +143,29 @@ class PythonPythonRepositoryResponse(object):
|
|
|
138
143
|
|
|
139
144
|
self._pulp_created = pulp_created
|
|
140
145
|
|
|
146
|
+
@property
|
|
147
|
+
def pulp_last_updated(self):
|
|
148
|
+
"""Gets the pulp_last_updated of this PythonPythonRepositoryResponse. # noqa: E501
|
|
149
|
+
|
|
150
|
+
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. # noqa: E501
|
|
151
|
+
|
|
152
|
+
:return: The pulp_last_updated of this PythonPythonRepositoryResponse. # noqa: E501
|
|
153
|
+
:rtype: datetime
|
|
154
|
+
"""
|
|
155
|
+
return self._pulp_last_updated
|
|
156
|
+
|
|
157
|
+
@pulp_last_updated.setter
|
|
158
|
+
def pulp_last_updated(self, pulp_last_updated):
|
|
159
|
+
"""Sets the pulp_last_updated of this PythonPythonRepositoryResponse.
|
|
160
|
+
|
|
161
|
+
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. # noqa: E501
|
|
162
|
+
|
|
163
|
+
:param pulp_last_updated: The pulp_last_updated of this PythonPythonRepositoryResponse. # noqa: E501
|
|
164
|
+
:type: datetime
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
self._pulp_last_updated = pulp_last_updated
|
|
168
|
+
|
|
141
169
|
@property
|
|
142
170
|
def versions_href(self):
|
|
143
171
|
"""Gets the versions_href of this PythonPythonRepositoryResponse. # noqa: E501
|
|
@@ -36,6 +36,7 @@ class RepositoryVersionResponse(object):
|
|
|
36
36
|
openapi_types = {
|
|
37
37
|
'pulp_href': 'str',
|
|
38
38
|
'pulp_created': 'datetime',
|
|
39
|
+
'pulp_last_updated': 'datetime',
|
|
39
40
|
'number': 'int',
|
|
40
41
|
'repository': 'str',
|
|
41
42
|
'base_version': 'str',
|
|
@@ -45,13 +46,14 @@ class RepositoryVersionResponse(object):
|
|
|
45
46
|
attribute_map = {
|
|
46
47
|
'pulp_href': 'pulp_href',
|
|
47
48
|
'pulp_created': 'pulp_created',
|
|
49
|
+
'pulp_last_updated': 'pulp_last_updated',
|
|
48
50
|
'number': 'number',
|
|
49
51
|
'repository': 'repository',
|
|
50
52
|
'base_version': 'base_version',
|
|
51
53
|
'content_summary': 'content_summary'
|
|
52
54
|
}
|
|
53
55
|
|
|
54
|
-
def __init__(self, pulp_href=None, pulp_created=None, number=None, repository=None, base_version=None, content_summary=None, local_vars_configuration=None): # noqa: E501
|
|
56
|
+
def __init__(self, pulp_href=None, pulp_created=None, pulp_last_updated=None, number=None, repository=None, base_version=None, content_summary=None, local_vars_configuration=None): # noqa: E501
|
|
55
57
|
"""RepositoryVersionResponse - a model defined in OpenAPI""" # noqa: E501
|
|
56
58
|
if local_vars_configuration is None:
|
|
57
59
|
local_vars_configuration = Configuration()
|
|
@@ -59,6 +61,7 @@ class RepositoryVersionResponse(object):
|
|
|
59
61
|
|
|
60
62
|
self._pulp_href = None
|
|
61
63
|
self._pulp_created = None
|
|
64
|
+
self._pulp_last_updated = None
|
|
62
65
|
self._number = None
|
|
63
66
|
self._repository = None
|
|
64
67
|
self._base_version = None
|
|
@@ -69,6 +72,8 @@ class RepositoryVersionResponse(object):
|
|
|
69
72
|
self.pulp_href = pulp_href
|
|
70
73
|
if pulp_created is not None:
|
|
71
74
|
self.pulp_created = pulp_created
|
|
75
|
+
if pulp_last_updated is not None:
|
|
76
|
+
self.pulp_last_updated = pulp_last_updated
|
|
72
77
|
if number is not None:
|
|
73
78
|
self.number = number
|
|
74
79
|
if repository is not None:
|
|
@@ -122,6 +127,29 @@ class RepositoryVersionResponse(object):
|
|
|
122
127
|
|
|
123
128
|
self._pulp_created = pulp_created
|
|
124
129
|
|
|
130
|
+
@property
|
|
131
|
+
def pulp_last_updated(self):
|
|
132
|
+
"""Gets the pulp_last_updated of this RepositoryVersionResponse. # noqa: E501
|
|
133
|
+
|
|
134
|
+
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. # noqa: E501
|
|
135
|
+
|
|
136
|
+
:return: The pulp_last_updated of this RepositoryVersionResponse. # noqa: E501
|
|
137
|
+
:rtype: datetime
|
|
138
|
+
"""
|
|
139
|
+
return self._pulp_last_updated
|
|
140
|
+
|
|
141
|
+
@pulp_last_updated.setter
|
|
142
|
+
def pulp_last_updated(self, pulp_last_updated):
|
|
143
|
+
"""Sets the pulp_last_updated of this RepositoryVersionResponse.
|
|
144
|
+
|
|
145
|
+
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. # noqa: E501
|
|
146
|
+
|
|
147
|
+
:param pulp_last_updated: The pulp_last_updated of this RepositoryVersionResponse. # noqa: E501
|
|
148
|
+
:type: datetime
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
self._pulp_last_updated = pulp_last_updated
|
|
152
|
+
|
|
125
153
|
@property
|
|
126
154
|
def number(self):
|
|
127
155
|
"""Gets the number of this RepositoryVersionResponse. # noqa: E501
|
|
@@ -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()
|