pulp_maven_client 0.3.1 → 0.3.2

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.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/ContentArtifactApi.md +1 -1
  4. data/docs/DistributionsMavenApi.md +1 -1
  5. data/docs/MavenMavenRemote.md +8 -6
  6. data/docs/MavenMavenRemoteResponse.md +8 -6
  7. data/docs/MavenMavenRepository.md +3 -3
  8. data/docs/MavenMavenRepositoryResponse.md +3 -3
  9. data/docs/PatchedmavenMavenRemote.md +8 -6
  10. data/docs/PatchedmavenMavenRepository.md +3 -3
  11. data/docs/RemotesMavenApi.md +1 -1
  12. data/docs/RepositoriesMavenApi.md +1 -1
  13. data/docs/RepositoriesMavenVersionsApi.md +1 -1
  14. data/lib/pulp_maven_client/configuration.rb +2 -2
  15. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +19 -0
  16. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +38 -0
  17. data/lib/pulp_maven_client/models/maven_maven_remote.rb +177 -7
  18. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +19 -7
  19. data/lib/pulp_maven_client/models/maven_maven_repository.rb +51 -16
  20. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +17 -16
  21. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +30 -0
  22. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +169 -7
  23. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +47 -16
  24. data/lib/pulp_maven_client/version.rb +1 -1
  25. data/spec/configuration_spec.rb +3 -3
  26. data/spec/models/maven_maven_remote_response_spec.rb +6 -0
  27. data/spec/models/maven_maven_remote_spec.rb +6 -0
  28. data/spec/models/maven_maven_repository_response_spec.rb +1 -1
  29. data/spec/models/maven_maven_repository_spec.rb +1 -1
  30. data/spec/models/patchedmaven_maven_remote_spec.rb +6 -0
  31. data/spec/models/patchedmaven_maven_repository_spec.rb +1 -1
  32. metadata +20 -132
  33. data/build/lib/pulpcore/__init__.py +0 -2
  34. data/build/lib/pulpcore/client/__init__.py +0 -2
  35. data/build/lib/pulpcore/client/pulp_maven/__init__.py +0 -58
  36. data/build/lib/pulpcore/client/pulp_maven/api/__init__.py +0 -10
  37. data/build/lib/pulpcore/client/pulp_maven/api/content_artifact_api.py +0 -445
  38. data/build/lib/pulpcore/client/pulp_maven/api/distributions_maven_api.py +0 -830
  39. data/build/lib/pulpcore/client/pulp_maven/api/remotes_maven_api.py +0 -840
  40. data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_api.py +0 -809
  41. data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +0 -614
  42. data/build/lib/pulpcore/client/pulp_maven/api_client.py +0 -667
  43. data/build/lib/pulpcore/client/pulp_maven/configuration.py +0 -427
  44. data/build/lib/pulpcore/client/pulp_maven/exceptions.py +0 -121
  45. data/build/lib/pulpcore/client/pulp_maven/models/__init__.py +0 -39
  46. data/build/lib/pulpcore/client/pulp_maven/models/async_operation_response.py +0 -124
  47. data/build/lib/pulpcore/client/pulp_maven/models/content_summary.py +0 -176
  48. data/build/lib/pulpcore/client/pulp_maven/models/content_summary_response.py +0 -176
  49. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +0 -153
  50. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +0 -290
  51. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +0 -260
  52. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +0 -342
  53. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote.py +0 -657
  54. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +0 -604
  55. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository.py +0 -232
  56. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +0 -338
  57. data/build/lib/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +0 -197
  58. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +0 -197
  59. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +0 -197
  60. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +0 -197
  61. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +0 -197
  62. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +0 -258
  63. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +0 -655
  64. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +0 -231
  65. data/build/lib/pulpcore/client/pulp_maven/models/policy_enum.py +0 -101
  66. data/build/lib/pulpcore/client/pulp_maven/models/repository_version.py +0 -123
  67. data/build/lib/pulpcore/client/pulp_maven/models/repository_version_response.py +0 -257
  68. data/build/lib/pulpcore/client/pulp_maven/rest.py +0 -292
  69. data/dist/pulp_maven-client-0.3.1.tar.gz +0 -0
  70. data/dist/pulp_maven_client-0.3.1-py3-none-any.whl +0 -0
  71. data/pulp_maven_client.egg-info/PKG-INFO +0 -15
  72. data/pulp_maven_client.egg-info/SOURCES.txt +0 -71
  73. data/pulp_maven_client.egg-info/dependency_links.txt +0 -1
  74. data/pulp_maven_client.egg-info/requires.txt +0 -4
  75. data/pulp_maven_client.egg-info/top_level.txt +0 -1
  76. data/pulpcore/__init__.py +0 -2
  77. data/pulpcore/client/__init__.py +0 -2
  78. data/pulpcore/client/pulp_maven/__init__.py +0 -58
  79. data/pulpcore/client/pulp_maven/api/__init__.py +0 -10
  80. data/pulpcore/client/pulp_maven/api/content_artifact_api.py +0 -445
  81. data/pulpcore/client/pulp_maven/api/distributions_maven_api.py +0 -830
  82. data/pulpcore/client/pulp_maven/api/remotes_maven_api.py +0 -840
  83. data/pulpcore/client/pulp_maven/api/repositories_maven_api.py +0 -809
  84. data/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +0 -614
  85. data/pulpcore/client/pulp_maven/api_client.py +0 -667
  86. data/pulpcore/client/pulp_maven/configuration.py +0 -427
  87. data/pulpcore/client/pulp_maven/exceptions.py +0 -121
  88. data/pulpcore/client/pulp_maven/models/__init__.py +0 -39
  89. data/pulpcore/client/pulp_maven/models/async_operation_response.py +0 -124
  90. data/pulpcore/client/pulp_maven/models/content_summary.py +0 -176
  91. data/pulpcore/client/pulp_maven/models/content_summary_response.py +0 -176
  92. data/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +0 -153
  93. data/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +0 -290
  94. data/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +0 -260
  95. data/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +0 -342
  96. data/pulpcore/client/pulp_maven/models/maven_maven_remote.py +0 -657
  97. data/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +0 -604
  98. data/pulpcore/client/pulp_maven/models/maven_maven_repository.py +0 -232
  99. data/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +0 -338
  100. data/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +0 -197
  101. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +0 -197
  102. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +0 -197
  103. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +0 -197
  104. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +0 -197
  105. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +0 -258
  106. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +0 -655
  107. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +0 -231
  108. data/pulpcore/client/pulp_maven/models/policy_enum.py +0 -101
  109. data/pulpcore/client/pulp_maven/models/repository_version.py +0 -123
  110. data/pulpcore/client/pulp_maven/models/repository_version_response.py +0 -257
  111. data/pulpcore/client/pulp_maven/rest.py +0 -292
  112. data/requirements.txt +0 -6
  113. data/setup.cfg +0 -2
  114. data/setup.py +0 -42
  115. data/test/__init__.py +0 -0
  116. data/test/test_async_operation_response.py +0 -54
  117. data/test/test_content_artifact_api.py +0 -55
  118. data/test/test_content_summary.py +0 -70
  119. data/test/test_content_summary_response.py +0 -70
  120. data/test/test_distributions_maven_api.py +0 -76
  121. data/test/test_maven_maven_artifact.py +0 -56
  122. data/test/test_maven_maven_artifact_response.py +0 -60
  123. data/test/test_maven_maven_distribution.py +0 -60
  124. data/test/test_maven_maven_distribution_response.py +0 -63
  125. data/test/test_maven_maven_remote.py +0 -76
  126. data/test/test_maven_maven_remote_response.py +0 -74
  127. data/test/test_maven_maven_repository.py +0 -58
  128. data/test/test_maven_maven_repository_response.py +0 -62
  129. data/test/test_paginated_repository_version_response_list.py +0 -64
  130. data/test/test_paginatedmaven_maven_artifact_response_list.py +0 -65
  131. data/test/test_paginatedmaven_maven_distribution_response_list.py +0 -67
  132. data/test/test_paginatedmaven_maven_remote_response_list.py +0 -78
  133. data/test/test_paginatedmaven_maven_repository_response_list.py +0 -67
  134. data/test/test_patchedmaven_maven_distribution.py +0 -58
  135. data/test/test_patchedmaven_maven_remote.py +0 -74
  136. data/test/test_patchedmaven_maven_repository.py +0 -57
  137. data/test/test_policy_enum.py +0 -52
  138. data/test/test_remotes_maven_api.py +0 -76
  139. data/test/test_repositories_maven_api.py +0 -76
  140. data/test/test_repositories_maven_versions_api.py +0 -61
  141. data/test/test_repository_version.py +0 -53
  142. data/test/test_repository_version_response.py +0 -58
  143. data/test-requirements.txt +0 -3
  144. data/tox.ini +0 -9
@@ -1,232 +0,0 @@
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_maven.configuration import Configuration
20
-
21
-
22
- class MavenMavenRepository(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
- 'pulp_labels': 'object',
38
- 'name': 'str',
39
- 'description': 'str',
40
- 'retained_versions': 'int',
41
- 'remote': 'str'
42
- }
43
-
44
- attribute_map = {
45
- 'pulp_labels': 'pulp_labels',
46
- 'name': 'name',
47
- 'description': 'description',
48
- 'retained_versions': 'retained_versions',
49
- 'remote': 'remote'
50
- }
51
-
52
- def __init__(self, pulp_labels=None, name=None, description=None, retained_versions=None, remote=None, local_vars_configuration=None): # noqa: E501
53
- """MavenMavenRepository - a model defined in OpenAPI""" # noqa: E501
54
- if local_vars_configuration is None:
55
- local_vars_configuration = Configuration()
56
- self.local_vars_configuration = local_vars_configuration
57
-
58
- self._pulp_labels = None
59
- self._name = None
60
- self._description = None
61
- self._retained_versions = None
62
- self._remote = None
63
- self.discriminator = None
64
-
65
- if pulp_labels is not None:
66
- self.pulp_labels = pulp_labels
67
- self.name = name
68
- self.description = description
69
- self.retained_versions = retained_versions
70
- self.remote = remote
71
-
72
- @property
73
- def pulp_labels(self):
74
- """Gets the pulp_labels of this MavenMavenRepository. # noqa: E501
75
-
76
-
77
- :return: The pulp_labels of this MavenMavenRepository. # noqa: E501
78
- :rtype: object
79
- """
80
- return self._pulp_labels
81
-
82
- @pulp_labels.setter
83
- def pulp_labels(self, pulp_labels):
84
- """Sets the pulp_labels of this MavenMavenRepository.
85
-
86
-
87
- :param pulp_labels: The pulp_labels of this MavenMavenRepository. # noqa: E501
88
- :type: object
89
- """
90
-
91
- self._pulp_labels = pulp_labels
92
-
93
- @property
94
- def name(self):
95
- """Gets the name of this MavenMavenRepository. # noqa: E501
96
-
97
- A unique name for this repository. # noqa: E501
98
-
99
- :return: The name of this MavenMavenRepository. # noqa: E501
100
- :rtype: str
101
- """
102
- return self._name
103
-
104
- @name.setter
105
- def name(self, name):
106
- """Sets the name of this MavenMavenRepository.
107
-
108
- A unique name for this repository. # noqa: E501
109
-
110
- :param name: The name of this MavenMavenRepository. # noqa: E501
111
- :type: str
112
- """
113
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
114
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
115
-
116
- self._name = name
117
-
118
- @property
119
- def description(self):
120
- """Gets the description of this MavenMavenRepository. # noqa: E501
121
-
122
- An optional description. # noqa: E501
123
-
124
- :return: The description of this MavenMavenRepository. # noqa: E501
125
- :rtype: str
126
- """
127
- return self._description
128
-
129
- @description.setter
130
- def description(self, description):
131
- """Sets the description of this MavenMavenRepository.
132
-
133
- An optional description. # noqa: E501
134
-
135
- :param description: The description of this MavenMavenRepository. # noqa: E501
136
- :type: str
137
- """
138
-
139
- self._description = description
140
-
141
- @property
142
- def retained_versions(self):
143
- """Gets the retained_versions of this MavenMavenRepository. # noqa: E501
144
-
145
- Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
146
-
147
- :return: The retained_versions of this MavenMavenRepository. # noqa: E501
148
- :rtype: int
149
- """
150
- return self._retained_versions
151
-
152
- @retained_versions.setter
153
- def retained_versions(self, retained_versions):
154
- """Sets the retained_versions of this MavenMavenRepository.
155
-
156
- Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
157
-
158
- :param retained_versions: The retained_versions of this MavenMavenRepository. # noqa: E501
159
- :type: int
160
- """
161
- if (self.local_vars_configuration.client_side_validation and
162
- retained_versions is not None and retained_versions < 1): # noqa: E501
163
- raise ValueError("Invalid value for `retained_versions`, must be a value greater than or equal to `1`") # noqa: E501
164
-
165
- self._retained_versions = retained_versions
166
-
167
- @property
168
- def remote(self):
169
- """Gets the remote of this MavenMavenRepository. # noqa: E501
170
-
171
-
172
- :return: The remote of this MavenMavenRepository. # noqa: E501
173
- :rtype: str
174
- """
175
- return self._remote
176
-
177
- @remote.setter
178
- def remote(self, remote):
179
- """Sets the remote of this MavenMavenRepository.
180
-
181
-
182
- :param remote: The remote of this MavenMavenRepository. # noqa: E501
183
- :type: str
184
- """
185
-
186
- self._remote = remote
187
-
188
- def to_dict(self):
189
- """Returns the model properties as a dict"""
190
- result = {}
191
-
192
- for attr, _ in six.iteritems(self.openapi_types):
193
- value = getattr(self, attr)
194
- if isinstance(value, list):
195
- result[attr] = list(map(
196
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
197
- value
198
- ))
199
- elif hasattr(value, "to_dict"):
200
- result[attr] = value.to_dict()
201
- elif isinstance(value, dict):
202
- result[attr] = dict(map(
203
- lambda item: (item[0], item[1].to_dict())
204
- if hasattr(item[1], "to_dict") else item,
205
- value.items()
206
- ))
207
- else:
208
- result[attr] = value
209
-
210
- return result
211
-
212
- def to_str(self):
213
- """Returns the string representation of the model"""
214
- return pprint.pformat(self.to_dict())
215
-
216
- def __repr__(self):
217
- """For `print` and `pprint`"""
218
- return self.to_str()
219
-
220
- def __eq__(self, other):
221
- """Returns true if both objects are equal"""
222
- if not isinstance(other, MavenMavenRepository):
223
- return False
224
-
225
- return self.to_dict() == other.to_dict()
226
-
227
- def __ne__(self, other):
228
- """Returns true if both objects are not equal"""
229
- if not isinstance(other, MavenMavenRepository):
230
- return True
231
-
232
- return self.to_dict() != other.to_dict()
@@ -1,338 +0,0 @@
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_maven.configuration import Configuration
20
-
21
-
22
- class MavenMavenRepositoryResponse(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
- 'pulp_href': 'str',
38
- 'pulp_created': 'datetime',
39
- 'versions_href': 'str',
40
- 'pulp_labels': 'object',
41
- 'latest_version_href': 'str',
42
- 'name': 'str',
43
- 'description': 'str',
44
- 'retained_versions': 'int',
45
- 'remote': 'str'
46
- }
47
-
48
- attribute_map = {
49
- 'pulp_href': 'pulp_href',
50
- 'pulp_created': 'pulp_created',
51
- 'versions_href': 'versions_href',
52
- 'pulp_labels': 'pulp_labels',
53
- 'latest_version_href': 'latest_version_href',
54
- 'name': 'name',
55
- 'description': 'description',
56
- 'retained_versions': 'retained_versions',
57
- 'remote': 'remote'
58
- }
59
-
60
- def __init__(self, pulp_href=None, pulp_created=None, versions_href=None, pulp_labels=None, latest_version_href=None, name=None, description=None, retained_versions=None, remote=None, local_vars_configuration=None): # noqa: E501
61
- """MavenMavenRepositoryResponse - a model defined in OpenAPI""" # noqa: E501
62
- if local_vars_configuration is None:
63
- local_vars_configuration = Configuration()
64
- self.local_vars_configuration = local_vars_configuration
65
-
66
- self._pulp_href = None
67
- self._pulp_created = None
68
- self._versions_href = None
69
- self._pulp_labels = None
70
- self._latest_version_href = None
71
- self._name = None
72
- self._description = None
73
- self._retained_versions = None
74
- self._remote = None
75
- self.discriminator = None
76
-
77
- if pulp_href is not None:
78
- self.pulp_href = pulp_href
79
- if pulp_created is not None:
80
- self.pulp_created = pulp_created
81
- if versions_href is not None:
82
- self.versions_href = versions_href
83
- if pulp_labels is not None:
84
- self.pulp_labels = pulp_labels
85
- if latest_version_href is not None:
86
- self.latest_version_href = latest_version_href
87
- self.name = name
88
- self.description = description
89
- self.retained_versions = retained_versions
90
- self.remote = remote
91
-
92
- @property
93
- def pulp_href(self):
94
- """Gets the pulp_href of this MavenMavenRepositoryResponse. # noqa: E501
95
-
96
-
97
- :return: The pulp_href of this MavenMavenRepositoryResponse. # noqa: E501
98
- :rtype: str
99
- """
100
- return self._pulp_href
101
-
102
- @pulp_href.setter
103
- def pulp_href(self, pulp_href):
104
- """Sets the pulp_href of this MavenMavenRepositoryResponse.
105
-
106
-
107
- :param pulp_href: The pulp_href of this MavenMavenRepositoryResponse. # noqa: E501
108
- :type: str
109
- """
110
-
111
- self._pulp_href = pulp_href
112
-
113
- @property
114
- def pulp_created(self):
115
- """Gets the pulp_created of this MavenMavenRepositoryResponse. # noqa: E501
116
-
117
- Timestamp of creation. # noqa: E501
118
-
119
- :return: The pulp_created of this MavenMavenRepositoryResponse. # noqa: E501
120
- :rtype: datetime
121
- """
122
- return self._pulp_created
123
-
124
- @pulp_created.setter
125
- def pulp_created(self, pulp_created):
126
- """Sets the pulp_created of this MavenMavenRepositoryResponse.
127
-
128
- Timestamp of creation. # noqa: E501
129
-
130
- :param pulp_created: The pulp_created of this MavenMavenRepositoryResponse. # noqa: E501
131
- :type: datetime
132
- """
133
-
134
- self._pulp_created = pulp_created
135
-
136
- @property
137
- def versions_href(self):
138
- """Gets the versions_href of this MavenMavenRepositoryResponse. # noqa: E501
139
-
140
-
141
- :return: The versions_href of this MavenMavenRepositoryResponse. # noqa: E501
142
- :rtype: str
143
- """
144
- return self._versions_href
145
-
146
- @versions_href.setter
147
- def versions_href(self, versions_href):
148
- """Sets the versions_href of this MavenMavenRepositoryResponse.
149
-
150
-
151
- :param versions_href: The versions_href of this MavenMavenRepositoryResponse. # noqa: E501
152
- :type: str
153
- """
154
-
155
- self._versions_href = versions_href
156
-
157
- @property
158
- def pulp_labels(self):
159
- """Gets the pulp_labels of this MavenMavenRepositoryResponse. # noqa: E501
160
-
161
-
162
- :return: The pulp_labels of this MavenMavenRepositoryResponse. # noqa: E501
163
- :rtype: object
164
- """
165
- return self._pulp_labels
166
-
167
- @pulp_labels.setter
168
- def pulp_labels(self, pulp_labels):
169
- """Sets the pulp_labels of this MavenMavenRepositoryResponse.
170
-
171
-
172
- :param pulp_labels: The pulp_labels of this MavenMavenRepositoryResponse. # noqa: E501
173
- :type: object
174
- """
175
-
176
- self._pulp_labels = pulp_labels
177
-
178
- @property
179
- def latest_version_href(self):
180
- """Gets the latest_version_href of this MavenMavenRepositoryResponse. # noqa: E501
181
-
182
-
183
- :return: The latest_version_href of this MavenMavenRepositoryResponse. # noqa: E501
184
- :rtype: str
185
- """
186
- return self._latest_version_href
187
-
188
- @latest_version_href.setter
189
- def latest_version_href(self, latest_version_href):
190
- """Sets the latest_version_href of this MavenMavenRepositoryResponse.
191
-
192
-
193
- :param latest_version_href: The latest_version_href of this MavenMavenRepositoryResponse. # noqa: E501
194
- :type: str
195
- """
196
-
197
- self._latest_version_href = latest_version_href
198
-
199
- @property
200
- def name(self):
201
- """Gets the name of this MavenMavenRepositoryResponse. # noqa: E501
202
-
203
- A unique name for this repository. # noqa: E501
204
-
205
- :return: The name of this MavenMavenRepositoryResponse. # noqa: E501
206
- :rtype: str
207
- """
208
- return self._name
209
-
210
- @name.setter
211
- def name(self, name):
212
- """Sets the name of this MavenMavenRepositoryResponse.
213
-
214
- A unique name for this repository. # noqa: E501
215
-
216
- :param name: The name of this MavenMavenRepositoryResponse. # noqa: E501
217
- :type: str
218
- """
219
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
220
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
221
-
222
- self._name = name
223
-
224
- @property
225
- def description(self):
226
- """Gets the description of this MavenMavenRepositoryResponse. # noqa: E501
227
-
228
- An optional description. # noqa: E501
229
-
230
- :return: The description of this MavenMavenRepositoryResponse. # noqa: E501
231
- :rtype: str
232
- """
233
- return self._description
234
-
235
- @description.setter
236
- def description(self, description):
237
- """Sets the description of this MavenMavenRepositoryResponse.
238
-
239
- An optional description. # noqa: E501
240
-
241
- :param description: The description of this MavenMavenRepositoryResponse. # noqa: E501
242
- :type: str
243
- """
244
-
245
- self._description = description
246
-
247
- @property
248
- def retained_versions(self):
249
- """Gets the retained_versions of this MavenMavenRepositoryResponse. # noqa: E501
250
-
251
- Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
252
-
253
- :return: The retained_versions of this MavenMavenRepositoryResponse. # noqa: E501
254
- :rtype: int
255
- """
256
- return self._retained_versions
257
-
258
- @retained_versions.setter
259
- def retained_versions(self, retained_versions):
260
- """Sets the retained_versions of this MavenMavenRepositoryResponse.
261
-
262
- Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
263
-
264
- :param retained_versions: The retained_versions of this MavenMavenRepositoryResponse. # noqa: E501
265
- :type: int
266
- """
267
- if (self.local_vars_configuration.client_side_validation and
268
- retained_versions is not None and retained_versions < 1): # noqa: E501
269
- raise ValueError("Invalid value for `retained_versions`, must be a value greater than or equal to `1`") # noqa: E501
270
-
271
- self._retained_versions = retained_versions
272
-
273
- @property
274
- def remote(self):
275
- """Gets the remote of this MavenMavenRepositoryResponse. # noqa: E501
276
-
277
-
278
- :return: The remote of this MavenMavenRepositoryResponse. # noqa: E501
279
- :rtype: str
280
- """
281
- return self._remote
282
-
283
- @remote.setter
284
- def remote(self, remote):
285
- """Sets the remote of this MavenMavenRepositoryResponse.
286
-
287
-
288
- :param remote: The remote of this MavenMavenRepositoryResponse. # noqa: E501
289
- :type: str
290
- """
291
-
292
- self._remote = remote
293
-
294
- def to_dict(self):
295
- """Returns the model properties as a dict"""
296
- result = {}
297
-
298
- for attr, _ in six.iteritems(self.openapi_types):
299
- value = getattr(self, attr)
300
- if isinstance(value, list):
301
- result[attr] = list(map(
302
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
303
- value
304
- ))
305
- elif hasattr(value, "to_dict"):
306
- result[attr] = value.to_dict()
307
- elif isinstance(value, dict):
308
- result[attr] = dict(map(
309
- lambda item: (item[0], item[1].to_dict())
310
- if hasattr(item[1], "to_dict") else item,
311
- value.items()
312
- ))
313
- else:
314
- result[attr] = value
315
-
316
- return result
317
-
318
- def to_str(self):
319
- """Returns the string representation of the model"""
320
- return pprint.pformat(self.to_dict())
321
-
322
- def __repr__(self):
323
- """For `print` and `pprint`"""
324
- return self.to_str()
325
-
326
- def __eq__(self, other):
327
- """Returns true if both objects are equal"""
328
- if not isinstance(other, MavenMavenRepositoryResponse):
329
- return False
330
-
331
- return self.to_dict() == other.to_dict()
332
-
333
- def __ne__(self, other):
334
- """Returns true if both objects are not equal"""
335
- if not isinstance(other, MavenMavenRepositoryResponse):
336
- return True
337
-
338
- return self.to_dict() != other.to_dict()