pulp_maven_client 0.2.0 → 0.3.0

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 (162) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/build/lib/pulpcore/__init__.py +2 -0
  4. data/build/lib/pulpcore/client/__init__.py +2 -0
  5. data/build/lib/pulpcore/client/pulp_maven/__init__.py +58 -0
  6. data/build/lib/pulpcore/client/pulp_maven/api/__init__.py +10 -0
  7. data/build/lib/pulpcore/client/pulp_maven/api/content_artifact_api.py +445 -0
  8. data/build/lib/pulpcore/client/pulp_maven/api/distributions_maven_api.py +830 -0
  9. data/build/lib/pulpcore/client/pulp_maven/api/remotes_maven_api.py +840 -0
  10. data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_api.py +809 -0
  11. data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +614 -0
  12. data/build/lib/pulpcore/client/pulp_maven/api_client.py +667 -0
  13. data/build/lib/pulpcore/client/pulp_maven/configuration.py +427 -0
  14. data/build/lib/pulpcore/client/pulp_maven/exceptions.py +121 -0
  15. data/build/lib/pulpcore/client/pulp_maven/models/__init__.py +39 -0
  16. data/build/lib/pulpcore/client/pulp_maven/models/async_operation_response.py +124 -0
  17. data/build/lib/pulpcore/client/pulp_maven/models/content_summary.py +176 -0
  18. data/build/lib/pulpcore/client/pulp_maven/models/content_summary_response.py +176 -0
  19. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +153 -0
  20. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +290 -0
  21. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +260 -0
  22. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +342 -0
  23. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote.py +657 -0
  24. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +604 -0
  25. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository.py +202 -0
  26. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +308 -0
  27. data/build/lib/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +197 -0
  28. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +197 -0
  29. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +197 -0
  30. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +197 -0
  31. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +197 -0
  32. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +258 -0
  33. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +655 -0
  34. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +201 -0
  35. data/build/lib/pulpcore/client/pulp_maven/models/policy_enum.py +101 -0
  36. data/build/lib/pulpcore/client/pulp_maven/models/repository_version.py +123 -0
  37. data/build/lib/pulpcore/client/pulp_maven/models/repository_version_response.py +231 -0
  38. data/build/lib/pulpcore/client/pulp_maven/rest.py +292 -0
  39. data/dist/pulp_maven-client-0.3.0.tar.gz +0 -0
  40. data/dist/pulp_maven_client-0.3.0-py3-none-any.whl +0 -0
  41. data/docs/ContentArtifactApi.md +14 -14
  42. data/docs/ContentSummary.md +3 -3
  43. data/docs/ContentSummaryResponse.md +3 -3
  44. data/docs/DistributionsMavenApi.md +20 -12
  45. data/docs/MavenMavenDistribution.md +4 -0
  46. data/docs/MavenMavenDistributionResponse.md +4 -0
  47. data/docs/MavenMavenRemote.md +12 -2
  48. data/docs/MavenMavenRemoteResponse.md +8 -8
  49. data/docs/MavenMavenRepository.md +3 -1
  50. data/docs/MavenMavenRepositoryResponse.md +2 -0
  51. data/docs/PatchedmavenMavenDistribution.md +4 -0
  52. data/docs/PatchedmavenMavenRemote.md +12 -2
  53. data/docs/PatchedmavenMavenRepository.md +3 -1
  54. data/docs/RemotesMavenApi.md +24 -16
  55. data/docs/RepositoriesMavenApi.md +12 -4
  56. data/docs/RepositoriesMavenVersionsApi.md +28 -28
  57. data/lib/pulp_maven_client/api/content_artifact_api.rb +14 -14
  58. data/lib/pulp_maven_client/api/distributions_maven_api.rb +26 -14
  59. data/lib/pulp_maven_client/api/remotes_maven_api.rb +30 -18
  60. data/lib/pulp_maven_client/api/repositories_maven_api.rb +17 -5
  61. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +30 -30
  62. data/lib/pulp_maven_client/models/content_summary.rb +12 -6
  63. data/lib/pulp_maven_client/models/content_summary_response.rb +12 -6
  64. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +21 -1
  65. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +21 -1
  66. data/lib/pulp_maven_client/models/maven_maven_remote.rb +60 -6
  67. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +35 -36
  68. data/lib/pulp_maven_client/models/maven_maven_repository.rb +10 -1
  69. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +10 -1
  70. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +21 -1
  71. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +60 -6
  72. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +10 -1
  73. data/lib/pulp_maven_client/version.rb +1 -1
  74. data/pulp_maven_client.egg-info/PKG-INFO +15 -0
  75. data/pulp_maven_client.egg-info/SOURCES.txt +71 -0
  76. data/pulp_maven_client.egg-info/dependency_links.txt +1 -0
  77. data/pulp_maven_client.egg-info/requires.txt +4 -0
  78. data/pulp_maven_client.egg-info/top_level.txt +1 -0
  79. data/pulpcore/__init__.py +2 -0
  80. data/pulpcore/client/__init__.py +2 -0
  81. data/pulpcore/client/pulp_maven/__init__.py +58 -0
  82. data/pulpcore/client/pulp_maven/api/__init__.py +10 -0
  83. data/pulpcore/client/pulp_maven/api/content_artifact_api.py +445 -0
  84. data/pulpcore/client/pulp_maven/api/distributions_maven_api.py +830 -0
  85. data/pulpcore/client/pulp_maven/api/remotes_maven_api.py +840 -0
  86. data/pulpcore/client/pulp_maven/api/repositories_maven_api.py +809 -0
  87. data/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +614 -0
  88. data/pulpcore/client/pulp_maven/api_client.py +667 -0
  89. data/pulpcore/client/pulp_maven/configuration.py +427 -0
  90. data/pulpcore/client/pulp_maven/exceptions.py +121 -0
  91. data/pulpcore/client/pulp_maven/models/__init__.py +39 -0
  92. data/pulpcore/client/pulp_maven/models/async_operation_response.py +124 -0
  93. data/pulpcore/client/pulp_maven/models/content_summary.py +176 -0
  94. data/pulpcore/client/pulp_maven/models/content_summary_response.py +176 -0
  95. data/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +153 -0
  96. data/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +290 -0
  97. data/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +260 -0
  98. data/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +342 -0
  99. data/pulpcore/client/pulp_maven/models/maven_maven_remote.py +657 -0
  100. data/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +604 -0
  101. data/pulpcore/client/pulp_maven/models/maven_maven_repository.py +202 -0
  102. data/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +308 -0
  103. data/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +197 -0
  104. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +197 -0
  105. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +197 -0
  106. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +197 -0
  107. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +197 -0
  108. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +258 -0
  109. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +655 -0
  110. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +201 -0
  111. data/pulpcore/client/pulp_maven/models/policy_enum.py +101 -0
  112. data/pulpcore/client/pulp_maven/models/repository_version.py +123 -0
  113. data/pulpcore/client/pulp_maven/models/repository_version_response.py +231 -0
  114. data/pulpcore/client/pulp_maven/rest.py +292 -0
  115. data/requirements.txt +6 -0
  116. data/setup.cfg +2 -0
  117. data/setup.py +42 -0
  118. data/spec/api/content_artifact_api_spec.rb +7 -7
  119. data/spec/api/distributions_maven_api_spec.rb +10 -6
  120. data/spec/api/remotes_maven_api_spec.rb +12 -8
  121. data/spec/api/repositories_maven_api_spec.rb +6 -2
  122. data/spec/api/repositories_maven_versions_api_spec.rb +14 -14
  123. data/spec/models/maven_maven_distribution_response_spec.rb +12 -0
  124. data/spec/models/maven_maven_distribution_spec.rb +12 -0
  125. data/spec/models/maven_maven_remote_response_spec.rb +12 -12
  126. data/spec/models/maven_maven_remote_spec.rb +30 -0
  127. data/spec/models/maven_maven_repository_response_spec.rb +6 -0
  128. data/spec/models/maven_maven_repository_spec.rb +6 -0
  129. data/spec/models/patchedmaven_maven_distribution_spec.rb +12 -0
  130. data/spec/models/patchedmaven_maven_remote_spec.rb +30 -0
  131. data/spec/models/patchedmaven_maven_repository_spec.rb +6 -0
  132. data/test/__init__.py +0 -0
  133. data/test/test_async_operation_response.py +54 -0
  134. data/test/test_content_artifact_api.py +55 -0
  135. data/test/test_content_summary.py +70 -0
  136. data/test/test_content_summary_response.py +70 -0
  137. data/test/test_distributions_maven_api.py +76 -0
  138. data/test/test_maven_maven_artifact.py +56 -0
  139. data/test/test_maven_maven_artifact_response.py +60 -0
  140. data/test/test_maven_maven_distribution.py +60 -0
  141. data/test/test_maven_maven_distribution_response.py +63 -0
  142. data/test/test_maven_maven_remote.py +76 -0
  143. data/test/test_maven_maven_remote_response.py +74 -0
  144. data/test/test_maven_maven_repository.py +57 -0
  145. data/test/test_maven_maven_repository_response.py +61 -0
  146. data/test/test_paginated_repository_version_response_list.py +63 -0
  147. data/test/test_paginatedmaven_maven_artifact_response_list.py +65 -0
  148. data/test/test_paginatedmaven_maven_distribution_response_list.py +67 -0
  149. data/test/test_paginatedmaven_maven_remote_response_list.py +78 -0
  150. data/test/test_paginatedmaven_maven_repository_response_list.py +66 -0
  151. data/test/test_patchedmaven_maven_distribution.py +58 -0
  152. data/test/test_patchedmaven_maven_remote.py +74 -0
  153. data/test/test_patchedmaven_maven_repository.py +56 -0
  154. data/test/test_policy_enum.py +52 -0
  155. data/test/test_remotes_maven_api.py +76 -0
  156. data/test/test_repositories_maven_api.py +76 -0
  157. data/test/test_repositories_maven_versions_api.py +61 -0
  158. data/test/test_repository_version.py +53 -0
  159. data/test/test_repository_version_response.py +57 -0
  160. data/test-requirements.txt +3 -0
  161. data/tox.ini +9 -0
  162. metadata +133 -21
@@ -0,0 +1,292 @@
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
+ from __future__ import absolute_import
15
+
16
+ import io
17
+ import json
18
+ import logging
19
+ import re
20
+ import ssl
21
+
22
+ import certifi
23
+ # python 2 and python 3 compatibility library
24
+ import six
25
+ from six.moves.urllib.parse import urlencode
26
+ import urllib3
27
+
28
+ from pulpcore.client.pulp_maven.exceptions import ApiException, ApiValueError
29
+
30
+
31
+ logger = logging.getLogger(__name__)
32
+
33
+
34
+ class RESTResponse(io.IOBase):
35
+
36
+ def __init__(self, resp):
37
+ self.urllib3_response = resp
38
+ self.status = resp.status
39
+ self.reason = resp.reason
40
+ self.data = resp.data
41
+
42
+ def getheaders(self):
43
+ """Returns a dictionary of the response headers."""
44
+ return self.urllib3_response.getheaders()
45
+
46
+ def getheader(self, name, default=None):
47
+ """Returns a given response header."""
48
+ return self.urllib3_response.getheader(name, default)
49
+
50
+
51
+ class RESTClientObject(object):
52
+
53
+ def __init__(self, configuration, pools_size=4, maxsize=None):
54
+ # urllib3.PoolManager will pass all kw parameters to connectionpool
55
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
56
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
57
+ # maxsize is the number of requests to host that are allowed in parallel # noqa: E501
58
+ # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
59
+
60
+ # cert_reqs
61
+ if configuration.verify_ssl:
62
+ cert_reqs = ssl.CERT_REQUIRED
63
+ else:
64
+ cert_reqs = ssl.CERT_NONE
65
+
66
+ # ca_certs
67
+ if configuration.ssl_ca_cert:
68
+ ca_certs = configuration.ssl_ca_cert
69
+ else:
70
+ # if not set certificate file, use Mozilla's root certificates.
71
+ ca_certs = certifi.where()
72
+
73
+ addition_pool_args = {}
74
+ if configuration.assert_hostname is not None:
75
+ addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501
76
+
77
+ if configuration.retries is not None:
78
+ addition_pool_args['retries'] = configuration.retries
79
+
80
+ if maxsize is None:
81
+ if configuration.connection_pool_maxsize is not None:
82
+ maxsize = configuration.connection_pool_maxsize
83
+ else:
84
+ maxsize = 4
85
+
86
+ # https pool manager
87
+ if configuration.proxy:
88
+ self.pool_manager = urllib3.ProxyManager(
89
+ num_pools=pools_size,
90
+ maxsize=maxsize,
91
+ cert_reqs=cert_reqs,
92
+ ca_certs=ca_certs,
93
+ cert_file=configuration.cert_file,
94
+ key_file=configuration.key_file,
95
+ proxy_url=configuration.proxy,
96
+ proxy_headers=configuration.proxy_headers,
97
+ **addition_pool_args
98
+ )
99
+ else:
100
+ self.pool_manager = urllib3.PoolManager(
101
+ num_pools=pools_size,
102
+ maxsize=maxsize,
103
+ cert_reqs=cert_reqs,
104
+ ca_certs=ca_certs,
105
+ cert_file=configuration.cert_file,
106
+ key_file=configuration.key_file,
107
+ **addition_pool_args
108
+ )
109
+
110
+ def request(self, method, url, query_params=None, headers=None,
111
+ body=None, post_params=None, _preload_content=True,
112
+ _request_timeout=None):
113
+ """Perform requests.
114
+
115
+ :param method: http request method
116
+ :param url: http request url
117
+ :param query_params: query parameters in the url
118
+ :param headers: http request headers
119
+ :param body: request json body, for `application/json`
120
+ :param post_params: request post parameters,
121
+ `application/x-www-form-urlencoded`
122
+ and `multipart/form-data`
123
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
124
+ be returned without reading/decoding response
125
+ data. Default is True.
126
+ :param _request_timeout: timeout setting for this request. If one
127
+ number provided, it will be total request
128
+ timeout. It can also be a pair (tuple) of
129
+ (connection, read) timeouts.
130
+ """
131
+ method = method.upper()
132
+ assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
133
+ 'PATCH', 'OPTIONS']
134
+
135
+ if post_params and body:
136
+ raise ApiValueError(
137
+ "body parameter cannot be used with post_params parameter."
138
+ )
139
+
140
+ post_params = post_params or {}
141
+ headers = headers or {}
142
+
143
+ timeout = None
144
+ if _request_timeout:
145
+ if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821
146
+ timeout = urllib3.Timeout(total=_request_timeout)
147
+ elif (isinstance(_request_timeout, tuple) and
148
+ len(_request_timeout) == 2):
149
+ timeout = urllib3.Timeout(
150
+ connect=_request_timeout[0], read=_request_timeout[1])
151
+
152
+ if 'Content-Type' not in headers:
153
+ headers['Content-Type'] = 'application/json'
154
+
155
+ try:
156
+ # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
157
+ if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
158
+ if query_params:
159
+ url += '?' + urlencode(query_params)
160
+ if re.search('json', headers['Content-Type'], re.IGNORECASE):
161
+ request_body = None
162
+ if body is not None:
163
+ request_body = json.dumps(body)
164
+ r = self.pool_manager.request(
165
+ method, url,
166
+ body=request_body,
167
+ preload_content=_preload_content,
168
+ timeout=timeout,
169
+ headers=headers)
170
+ elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
171
+ r = self.pool_manager.request(
172
+ method, url,
173
+ fields=post_params,
174
+ encode_multipart=False,
175
+ preload_content=_preload_content,
176
+ timeout=timeout,
177
+ headers=headers)
178
+ elif headers['Content-Type'] == 'multipart/form-data':
179
+ # must del headers['Content-Type'], or the correct
180
+ # Content-Type which generated by urllib3 will be
181
+ # overwritten.
182
+ del headers['Content-Type']
183
+ r = self.pool_manager.request(
184
+ method, url,
185
+ fields=post_params,
186
+ encode_multipart=True,
187
+ preload_content=_preload_content,
188
+ timeout=timeout,
189
+ headers=headers)
190
+ # Pass a `string` parameter directly in the body to support
191
+ # other content types than Json when `body` argument is
192
+ # provided in serialized form
193
+ elif isinstance(body, str) or isinstance(body, bytes):
194
+ request_body = body
195
+ r = self.pool_manager.request(
196
+ method, url,
197
+ body=request_body,
198
+ preload_content=_preload_content,
199
+ timeout=timeout,
200
+ headers=headers)
201
+ else:
202
+ # Cannot generate the request from given parameters
203
+ msg = """Cannot prepare a request message for provided
204
+ arguments. Please check that your arguments match
205
+ declared content type."""
206
+ raise ApiException(status=0, reason=msg)
207
+ # For `GET`, `HEAD`
208
+ else:
209
+ r = self.pool_manager.request(method, url,
210
+ fields=query_params,
211
+ preload_content=_preload_content,
212
+ timeout=timeout,
213
+ headers=headers)
214
+ except urllib3.exceptions.SSLError as e:
215
+ msg = "{0}\n{1}".format(type(e).__name__, str(e))
216
+ raise ApiException(status=0, reason=msg)
217
+
218
+ if _preload_content:
219
+ r = RESTResponse(r)
220
+
221
+ # log response body
222
+ logger.debug("response body: %s", r.data)
223
+
224
+ if not 200 <= r.status <= 299:
225
+ raise ApiException(http_resp=r)
226
+
227
+ return r
228
+
229
+ def GET(self, url, headers=None, query_params=None, _preload_content=True,
230
+ _request_timeout=None):
231
+ return self.request("GET", url,
232
+ headers=headers,
233
+ _preload_content=_preload_content,
234
+ _request_timeout=_request_timeout,
235
+ query_params=query_params)
236
+
237
+ def HEAD(self, url, headers=None, query_params=None, _preload_content=True,
238
+ _request_timeout=None):
239
+ return self.request("HEAD", url,
240
+ headers=headers,
241
+ _preload_content=_preload_content,
242
+ _request_timeout=_request_timeout,
243
+ query_params=query_params)
244
+
245
+ def OPTIONS(self, url, headers=None, query_params=None, post_params=None,
246
+ body=None, _preload_content=True, _request_timeout=None):
247
+ return self.request("OPTIONS", url,
248
+ headers=headers,
249
+ query_params=query_params,
250
+ post_params=post_params,
251
+ _preload_content=_preload_content,
252
+ _request_timeout=_request_timeout,
253
+ body=body)
254
+
255
+ def DELETE(self, url, headers=None, query_params=None, body=None,
256
+ _preload_content=True, _request_timeout=None):
257
+ return self.request("DELETE", url,
258
+ headers=headers,
259
+ query_params=query_params,
260
+ _preload_content=_preload_content,
261
+ _request_timeout=_request_timeout,
262
+ body=body)
263
+
264
+ def POST(self, url, headers=None, query_params=None, post_params=None,
265
+ body=None, _preload_content=True, _request_timeout=None):
266
+ return self.request("POST", url,
267
+ headers=headers,
268
+ query_params=query_params,
269
+ post_params=post_params,
270
+ _preload_content=_preload_content,
271
+ _request_timeout=_request_timeout,
272
+ body=body)
273
+
274
+ def PUT(self, url, headers=None, query_params=None, post_params=None,
275
+ body=None, _preload_content=True, _request_timeout=None):
276
+ return self.request("PUT", url,
277
+ headers=headers,
278
+ query_params=query_params,
279
+ post_params=post_params,
280
+ _preload_content=_preload_content,
281
+ _request_timeout=_request_timeout,
282
+ body=body)
283
+
284
+ def PATCH(self, url, headers=None, query_params=None, post_params=None,
285
+ body=None, _preload_content=True, _request_timeout=None):
286
+ return self.request("PATCH", url,
287
+ headers=headers,
288
+ query_params=query_params,
289
+ post_params=post_params,
290
+ _preload_content=_preload_content,
291
+ _request_timeout=_request_timeout,
292
+ body=body)
Binary file
@@ -85,16 +85,16 @@ end
85
85
 
86
86
  api_instance = PulpMavenClient::ContentArtifactApi.new
87
87
  opts = {
88
- artifact_id: 'artifact_id_example', # String | artifact_id
89
- filename: 'filename_example', # String | filename
90
- group_id: 'group_id_example', # String | group_id
88
+ artifact_id: 'artifact_id_example', # String | Filter results where artifact_id matches value
89
+ filename: 'filename_example', # String | Filter results where filename matches value
90
+ group_id: 'group_id_example', # String | Filter results where group_id matches value
91
91
  limit: 56, # Integer | Number of results to return per page.
92
92
  offset: 56, # Integer | The initial index from which to return the results.
93
93
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
94
- repository_version: 'repository_version_example', # String | repository_version
95
- repository_version_added: 'repository_version_added_example', # String | repository_version_added
96
- repository_version_removed: 'repository_version_removed_example', # String | repository_version_removed
97
- version: 'version_example', # String | version
94
+ repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
95
+ repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
96
+ repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
97
+ version: 'version_example', # String | Filter results where version matches value
98
98
  fields: 'fields_example', # String | A list of fields to include in the response.
99
99
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
100
100
  }
@@ -113,16 +113,16 @@ end
113
113
 
114
114
  Name | Type | Description | Notes
115
115
  ------------- | ------------- | ------------- | -------------
116
- **artifact_id** | **String**| artifact_id | [optional]
117
- **filename** | **String**| filename | [optional]
118
- **group_id** | **String**| group_id | [optional]
116
+ **artifact_id** | **String**| Filter results where artifact_id matches value | [optional]
117
+ **filename** | **String**| Filter results where filename matches value | [optional]
118
+ **group_id** | **String**| Filter results where group_id matches value | [optional]
119
119
  **limit** | **Integer**| Number of results to return per page. | [optional]
120
120
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
121
121
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
122
- **repository_version** | **String**| repository_version | [optional]
123
- **repository_version_added** | **String**| repository_version_added | [optional]
124
- **repository_version_removed** | **String**| repository_version_removed | [optional]
125
- **version** | **String**| version | [optional]
122
+ **repository_version** | **String**| Repository Version referenced by HREF | [optional]
123
+ **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
124
+ **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
125
+ **version** | **String**| Filter results where version matches value | [optional]
126
126
  **fields** | **String**| A list of fields to include in the response. | [optional]
127
127
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
128
128
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **added** | [**Object**](.md) | |
8
- **removed** | [**Object**](.md) | |
9
- **present** | [**Object**](.md) | |
7
+ **added** | **Hash&lt;String, Object&gt;** | |
8
+ **removed** | **Hash&lt;String, Object&gt;** | |
9
+ **present** | **Hash&lt;String, Object&gt;** | |
10
10
 
11
11
  ## Code Sample
12
12
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **added** | [**Object**](.md) | |
8
- **removed** | [**Object**](.md) | |
9
- **present** | [**Object**](.md) | |
7
+ **added** | **Hash&lt;String, Object&gt;** | |
8
+ **removed** | **Hash&lt;String, Object&gt;** | |
9
+ **present** | **Hash&lt;String, Object&gt;** | |
10
10
 
11
11
  ## Code Sample
12
12
 
@@ -141,15 +141,19 @@ end
141
141
 
142
142
  api_instance = PulpMavenClient::DistributionsMavenApi.new
143
143
  opts = {
144
- base_path: 'base_path_example', # String | base_path
145
- base_path__contains: 'base_path__contains_example', # String | base_path__contains
146
- base_path__icontains: 'base_path__icontains_example', # String | base_path__icontains
147
- base_path__in: 'base_path__in_example', # String | base_path__in
144
+ base_path: 'base_path_example', # String |
145
+ base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
146
+ base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
147
+ base_path__in: ['base_path__in_example'], # Array<String> | Filter results where base_path is in a comma-separated list of values
148
148
  limit: 56, # Integer | Number of results to return per page.
149
- name: 'name_example', # String | name
150
- name__in: 'name__in_example', # String | name__in
149
+ name: 'name_example', # String |
150
+ name__contains: 'name__contains_example', # String | Filter results where name contains value
151
+ name__icontains: 'name__icontains_example', # String | Filter results where name contains value
152
+ name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
153
+ name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
151
154
  offset: 56, # Integer | The initial index from which to return the results.
152
155
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
156
+ pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
153
157
  fields: 'fields_example', # String | A list of fields to include in the response.
154
158
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
155
159
  }
@@ -168,15 +172,19 @@ end
168
172
 
169
173
  Name | Type | Description | Notes
170
174
  ------------- | ------------- | ------------- | -------------
171
- **base_path** | **String**| base_path | [optional]
172
- **base_path__contains** | **String**| base_path__contains | [optional]
173
- **base_path__icontains** | **String**| base_path__icontains | [optional]
174
- **base_path__in** | **String**| base_path__in | [optional]
175
+ **base_path** | **String**| | [optional]
176
+ **base_path__contains** | **String**| Filter results where base_path contains value | [optional]
177
+ **base_path__icontains** | **String**| Filter results where base_path contains value | [optional]
178
+ **base_path__in** | [**Array&lt;String&gt;**](String.md)| Filter results where base_path is in a comma-separated list of values | [optional]
175
179
  **limit** | **Integer**| Number of results to return per page. | [optional]
176
- **name** | **String**| name | [optional]
177
- **name__in** | **String**| name__in | [optional]
180
+ **name** | **String**| | [optional]
181
+ **name__contains** | **String**| Filter results where name contains value | [optional]
182
+ **name__icontains** | **String**| Filter results where name contains value | [optional]
183
+ **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
184
+ **name__startswith** | **String**| Filter results where name starts with value | [optional]
178
185
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
179
186
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
187
+ **pulp_label_select** | **String**| Filter labels by search string | [optional]
180
188
  **fields** | **String**| A list of fields to include in the response. | [optional]
181
189
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
182
190
 
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \&quot;foo\&quot; and \&quot;foo/bar\&quot;) |
8
8
  **content_guard** | **String** | An optional content-guard. | [optional]
9
+ **pulp_labels** | [**Object**](.md) | | [optional]
9
10
  **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. |
11
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
12
  **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional]
11
13
 
12
14
  ## Code Sample
@@ -16,7 +18,9 @@ require 'PulpMavenClient'
16
18
 
17
19
  instance = PulpMavenClient::MavenMavenDistribution.new(base_path: null,
18
20
  content_guard: null,
21
+ pulp_labels: null,
19
22
  name: null,
23
+ repository: null,
20
24
  remote: null)
21
25
  ```
22
26
 
@@ -9,7 +9,9 @@ Name | Type | Description | Notes
9
9
  **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \&quot;foo\&quot; and \&quot;foo/bar\&quot;) |
10
10
  **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly]
11
11
  **content_guard** | **String** | An optional content-guard. | [optional]
12
+ **pulp_labels** | [**Object**](.md) | | [optional]
12
13
  **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. |
14
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
13
15
  **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional]
14
16
 
15
17
  ## Code Sample
@@ -22,7 +24,9 @@ instance = PulpMavenClient::MavenMavenDistributionResponse.new(pulp_href: null,
22
24
  base_path: null,
23
25
  base_url: null,
24
26
  content_guard: null,
27
+ pulp_labels: null,
25
28
  name: null,
29
+ repository: null,
26
30
  remote: null)
27
31
  ```
28
32
 
@@ -10,15 +10,20 @@ Name | Type | Description | Notes
10
10
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
11
11
  **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
12
12
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
13
- **proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
13
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
14
+ **proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
15
+ **proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
14
16
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
15
17
  **password** | **String** | The password to be used for authentication when syncing. | [optional]
18
+ **pulp_labels** | [**Object**](.md) | | [optional]
16
19
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
17
20
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
18
21
  **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
19
22
  **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
20
23
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
21
24
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
25
+ **headers** | **Array&lt;Object&gt;** | Headers for aiohttp.Clientsession | [optional]
26
+ **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
22
27
 
23
28
  ## Code Sample
24
29
 
@@ -32,14 +37,19 @@ instance = PulpMavenClient::MavenMavenRemote.new(name: null,
32
37
  client_key: null,
33
38
  tls_validation: null,
34
39
  proxy_url: null,
40
+ proxy_username: null,
41
+ proxy_password: null,
35
42
  username: null,
36
43
  password: null,
44
+ pulp_labels: null,
37
45
  download_concurrency: null,
38
46
  policy: null,
39
47
  total_timeout: null,
40
48
  connect_timeout: null,
41
49
  sock_connect_timeout: null,
42
- sock_read_timeout: null)
50
+ sock_read_timeout: null,
51
+ headers: null,
52
+ rate_limit: null)
43
53
  ```
44
54
 
45
55
 
@@ -10,11 +10,9 @@ Name | Type | Description | Notes
10
10
  **url** | **String** | The URL of an external content source. |
11
11
  **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
12
12
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
13
- **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
14
13
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
15
- **proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
16
- **username** | **String** | The username to be used for authentication when syncing. | [optional]
17
- **password** | **String** | The password to be used for authentication when syncing. | [optional]
14
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
15
+ **pulp_labels** | [**Object**](.md) | | [optional]
18
16
  **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
19
17
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
20
18
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
@@ -22,6 +20,8 @@ Name | Type | Description | Notes
22
20
  **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
23
21
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
24
22
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
23
+ **headers** | **Array&lt;Object&gt;** | Headers for aiohttp.Clientsession | [optional]
24
+ **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
25
25
 
26
26
  ## Code Sample
27
27
 
@@ -34,18 +34,18 @@ instance = PulpMavenClient::MavenMavenRemoteResponse.new(pulp_href: null,
34
34
  url: null,
35
35
  ca_cert: null,
36
36
  client_cert: null,
37
- client_key: null,
38
37
  tls_validation: null,
39
38
  proxy_url: null,
40
- username: null,
41
- password: null,
39
+ pulp_labels: null,
42
40
  pulp_last_updated: null,
43
41
  download_concurrency: null,
44
42
  policy: null,
45
43
  total_timeout: null,
46
44
  connect_timeout: null,
47
45
  sock_connect_timeout: null,
48
- sock_read_timeout: null)
46
+ sock_read_timeout: null,
47
+ headers: null,
48
+ rate_limit: null)
49
49
  ```
50
50
 
51
51
 
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_labels** | [**Object**](.md) | | [optional]
7
8
  **name** | **String** | A unique name for this repository. |
8
9
  **description** | **String** | An optional description. | [optional]
9
10
  **remote** | **String** | | [optional]
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
13
14
  ```ruby
14
15
  require 'PulpMavenClient'
15
16
 
16
- instance = PulpMavenClient::MavenMavenRepository.new(name: null,
17
+ instance = PulpMavenClient::MavenMavenRepository.new(pulp_labels: null,
18
+ name: null,
17
19
  description: null,
18
20
  remote: null)
19
21
  ```
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **versions_href** | **String** | | [optional] [readonly]
10
+ **pulp_labels** | [**Object**](.md) | | [optional]
10
11
  **latest_version_href** | **String** | | [optional] [readonly]
11
12
  **name** | **String** | A unique name for this repository. |
12
13
  **description** | **String** | An optional description. | [optional]
@@ -20,6 +21,7 @@ require 'PulpMavenClient'
20
21
  instance = PulpMavenClient::MavenMavenRepositoryResponse.new(pulp_href: null,
21
22
  pulp_created: null,
22
23
  versions_href: null,
24
+ pulp_labels: null,
23
25
  latest_version_href: null,
24
26
  name: null,
25
27
  description: null,
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \&quot;foo\&quot; and \&quot;foo/bar\&quot;) | [optional]
8
8
  **content_guard** | **String** | An optional content-guard. | [optional]
9
+ **pulp_labels** | [**Object**](.md) | | [optional]
9
10
  **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. | [optional]
11
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
12
  **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional]
11
13
 
12
14
  ## Code Sample
@@ -16,7 +18,9 @@ require 'PulpMavenClient'
16
18
 
17
19
  instance = PulpMavenClient::PatchedmavenMavenDistribution.new(base_path: null,
18
20
  content_guard: null,
21
+ pulp_labels: null,
19
22
  name: null,
23
+ repository: null,
20
24
  remote: null)
21
25
  ```
22
26
 
@@ -10,15 +10,20 @@ Name | Type | Description | Notes
10
10
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
11
11
  **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
12
12
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
13
- **proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
13
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
14
+ **proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
15
+ **proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
14
16
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
15
17
  **password** | **String** | The password to be used for authentication when syncing. | [optional]
18
+ **pulp_labels** | [**Object**](.md) | | [optional]
16
19
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
17
20
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
18
21
  **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
19
22
  **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
20
23
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
21
24
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
25
+ **headers** | **Array&lt;Object&gt;** | Headers for aiohttp.Clientsession | [optional]
26
+ **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
22
27
 
23
28
  ## Code Sample
24
29
 
@@ -32,14 +37,19 @@ instance = PulpMavenClient::PatchedmavenMavenRemote.new(name: null,
32
37
  client_key: null,
33
38
  tls_validation: null,
34
39
  proxy_url: null,
40
+ proxy_username: null,
41
+ proxy_password: null,
35
42
  username: null,
36
43
  password: null,
44
+ pulp_labels: null,
37
45
  download_concurrency: null,
38
46
  policy: null,
39
47
  total_timeout: null,
40
48
  connect_timeout: null,
41
49
  sock_connect_timeout: null,
42
- sock_read_timeout: null)
50
+ sock_read_timeout: null,
51
+ headers: null,
52
+ rate_limit: null)
43
53
  ```
44
54
 
45
55