pulp_maven_client 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de15363fcac73f0e2c1c53b01f2d8935786a37c4fdb3787d07b72a4d85d66a0a
4
- data.tar.gz: e7619b390cd9063f83a1b7f64fbd8e7804be8c22e5edc62520a26371dae68780
3
+ metadata.gz: 421fa595c8a8faa0b47d86454f1f5f80721216edd203ffb1c1d20263ef93cb46
4
+ data.tar.gz: 2a3fb5076900f5c3814651761d59ba92100c50896311969dfb0057eda674db00
5
5
  SHA512:
6
- metadata.gz: c5382a8aa944e3d7e22e4b37d4c328b9ce477c7eaab46771c3598c68521e43ab300b31a1886ea465c980796376dc5aed11471441417376b67abb187684481920
7
- data.tar.gz: 82187c61ff721f1aeeacd662e63031d37e996c5ab6414c18feed44d4a5f3e25a5155111564803c786a3c991a259b42515ea02dfd985eddd5a545e33638f4c04d
6
+ metadata.gz: 9c779584e1f396a37e32d5286f34867ef19c7a9ee5453cf9f75955d50b09b6df510c20e429edf9a82cfe903183977f4d1326a57e3c7ab9d11411f63a79990da8
7
+ data.tar.gz: 2e8366b5956d7c75b91d8a3bba58b9acea0d1cee58d4a05d09e057dce554a72b75e3246abf4865bf7d1277bab277dff4d9dd1ef3c080cee09d4af716c89865c8
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 0.2.0
10
+ - Package version: 0.3.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_maven_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_maven_client-0.2.0.gem
27
+ gem install ./pulp_maven_client-0.3.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_maven_client-0.2.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_maven_client-0.3.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_maven_client', '~> 0.2.0'
36
+ gem 'pulp_maven_client', '~> 0.3.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -0,0 +1,2 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
@@ -0,0 +1,2 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
@@ -0,0 +1,58 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Pulp 3 API
7
+
8
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
9
+
10
+ The version of the OpenAPI document: v3
11
+ Contact: pulp-list@redhat.com
12
+ Generated by: https://openapi-generator.tech
13
+ """
14
+
15
+
16
+ from __future__ import absolute_import
17
+
18
+ __version__ = "0.3.0"
19
+
20
+ # import apis into sdk package
21
+ from pulpcore.client.pulp_maven.api.content_artifact_api import ContentArtifactApi
22
+ from pulpcore.client.pulp_maven.api.distributions_maven_api import DistributionsMavenApi
23
+ from pulpcore.client.pulp_maven.api.remotes_maven_api import RemotesMavenApi
24
+ from pulpcore.client.pulp_maven.api.repositories_maven_api import RepositoriesMavenApi
25
+ from pulpcore.client.pulp_maven.api.repositories_maven_versions_api import RepositoriesMavenVersionsApi
26
+
27
+ # import ApiClient
28
+ from pulpcore.client.pulp_maven.api_client import ApiClient
29
+ from pulpcore.client.pulp_maven.configuration import Configuration
30
+ from pulpcore.client.pulp_maven.exceptions import OpenApiException
31
+ from pulpcore.client.pulp_maven.exceptions import ApiTypeError
32
+ from pulpcore.client.pulp_maven.exceptions import ApiValueError
33
+ from pulpcore.client.pulp_maven.exceptions import ApiKeyError
34
+ from pulpcore.client.pulp_maven.exceptions import ApiException
35
+ # import models into sdk package
36
+ from pulpcore.client.pulp_maven.models.async_operation_response import AsyncOperationResponse
37
+ from pulpcore.client.pulp_maven.models.content_summary import ContentSummary
38
+ from pulpcore.client.pulp_maven.models.content_summary_response import ContentSummaryResponse
39
+ from pulpcore.client.pulp_maven.models.maven_maven_artifact import MavenMavenArtifact
40
+ from pulpcore.client.pulp_maven.models.maven_maven_artifact_response import MavenMavenArtifactResponse
41
+ from pulpcore.client.pulp_maven.models.maven_maven_distribution import MavenMavenDistribution
42
+ from pulpcore.client.pulp_maven.models.maven_maven_distribution_response import MavenMavenDistributionResponse
43
+ from pulpcore.client.pulp_maven.models.maven_maven_remote import MavenMavenRemote
44
+ from pulpcore.client.pulp_maven.models.maven_maven_remote_response import MavenMavenRemoteResponse
45
+ from pulpcore.client.pulp_maven.models.maven_maven_repository import MavenMavenRepository
46
+ from pulpcore.client.pulp_maven.models.maven_maven_repository_response import MavenMavenRepositoryResponse
47
+ from pulpcore.client.pulp_maven.models.paginated_repository_version_response_list import PaginatedRepositoryVersionResponseList
48
+ from pulpcore.client.pulp_maven.models.paginatedmaven_maven_artifact_response_list import PaginatedmavenMavenArtifactResponseList
49
+ from pulpcore.client.pulp_maven.models.paginatedmaven_maven_distribution_response_list import PaginatedmavenMavenDistributionResponseList
50
+ from pulpcore.client.pulp_maven.models.paginatedmaven_maven_remote_response_list import PaginatedmavenMavenRemoteResponseList
51
+ from pulpcore.client.pulp_maven.models.paginatedmaven_maven_repository_response_list import PaginatedmavenMavenRepositoryResponseList
52
+ from pulpcore.client.pulp_maven.models.patchedmaven_maven_distribution import PatchedmavenMavenDistribution
53
+ from pulpcore.client.pulp_maven.models.patchedmaven_maven_remote import PatchedmavenMavenRemote
54
+ from pulpcore.client.pulp_maven.models.patchedmaven_maven_repository import PatchedmavenMavenRepository
55
+ from pulpcore.client.pulp_maven.models.policy_enum import PolicyEnum
56
+ from pulpcore.client.pulp_maven.models.repository_version import RepositoryVersion
57
+ from pulpcore.client.pulp_maven.models.repository_version_response import RepositoryVersionResponse
58
+
@@ -0,0 +1,10 @@
1
+ from __future__ import absolute_import
2
+
3
+ # flake8: noqa
4
+
5
+ # import apis into api package
6
+ from pulpcore.client.pulp_maven.api.content_artifact_api import ContentArtifactApi
7
+ from pulpcore.client.pulp_maven.api.distributions_maven_api import DistributionsMavenApi
8
+ from pulpcore.client.pulp_maven.api.remotes_maven_api import RemotesMavenApi
9
+ from pulpcore.client.pulp_maven.api.repositories_maven_api import RepositoriesMavenApi
10
+ from pulpcore.client.pulp_maven.api.repositories_maven_versions_api import RepositoriesMavenVersionsApi
@@ -0,0 +1,445 @@
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 re # noqa: F401
17
+
18
+ # python 2 and python 3 compatibility library
19
+ import six
20
+
21
+ from pulpcore.client.pulp_maven.api_client import ApiClient
22
+ from pulpcore.client.pulp_maven.exceptions import ( # noqa: F401
23
+ ApiTypeError,
24
+ ApiValueError
25
+ )
26
+
27
+
28
+ class ContentArtifactApi(object):
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None):
36
+ if api_client is None:
37
+ api_client = ApiClient()
38
+ self.api_client = api_client
39
+
40
+ def create(self, maven_maven_artifact, **kwargs): # noqa: E501
41
+ """Create a maven artifact # noqa: E501
42
+
43
+ A ViewSet for MavenArtifact. # noqa: E501
44
+ This method makes a synchronous HTTP request by default. To make an
45
+ asynchronous HTTP request, please pass async_req=True
46
+ >>> thread = api.create(maven_maven_artifact, async_req=True)
47
+ >>> result = thread.get()
48
+
49
+ :param async_req bool: execute request asynchronously
50
+ :param MavenMavenArtifact maven_maven_artifact: (required)
51
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
52
+ be returned without reading/decoding response
53
+ data. Default is True.
54
+ :param _request_timeout: timeout setting for this request. If one
55
+ number provided, it will be total request
56
+ timeout. It can also be a pair (tuple) of
57
+ (connection, read) timeouts.
58
+ :return: MavenMavenArtifactResponse
59
+ If the method is called asynchronously,
60
+ returns the request thread.
61
+ """
62
+ kwargs['_return_http_data_only'] = True
63
+ return self.create_with_http_info(maven_maven_artifact, **kwargs) # noqa: E501
64
+
65
+ def create_with_http_info(self, maven_maven_artifact, **kwargs): # noqa: E501
66
+ """Create a maven artifact # noqa: E501
67
+
68
+ A ViewSet for MavenArtifact. # noqa: E501
69
+ This method makes a synchronous HTTP request by default. To make an
70
+ asynchronous HTTP request, please pass async_req=True
71
+ >>> thread = api.create_with_http_info(maven_maven_artifact, async_req=True)
72
+ >>> result = thread.get()
73
+
74
+ :param async_req bool: execute request asynchronously
75
+ :param MavenMavenArtifact maven_maven_artifact: (required)
76
+ :param _return_http_data_only: response data without head status code
77
+ and headers
78
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
79
+ be returned without reading/decoding response
80
+ data. Default is True.
81
+ :param _request_timeout: timeout setting for this request. If one
82
+ number provided, it will be total request
83
+ timeout. It can also be a pair (tuple) of
84
+ (connection, read) timeouts.
85
+ :return: tuple(MavenMavenArtifactResponse, status_code(int), headers(HTTPHeaderDict))
86
+ If the method is called asynchronously,
87
+ returns the request thread.
88
+ """
89
+
90
+ local_var_params = locals()
91
+
92
+ all_params = [
93
+ 'maven_maven_artifact'
94
+ ]
95
+ all_params.extend(
96
+ [
97
+ 'async_req',
98
+ '_return_http_data_only',
99
+ '_preload_content',
100
+ '_request_timeout'
101
+ ]
102
+ )
103
+
104
+ for key, val in six.iteritems(local_var_params['kwargs']):
105
+ if key not in all_params:
106
+ raise ApiTypeError(
107
+ "Got an unexpected keyword argument '%s'"
108
+ " to method create" % key
109
+ )
110
+ local_var_params[key] = val
111
+ del local_var_params['kwargs']
112
+ # verify the required parameter 'maven_maven_artifact' is set
113
+ if self.api_client.client_side_validation and ('maven_maven_artifact' not in local_var_params or # noqa: E501
114
+ local_var_params['maven_maven_artifact'] is None): # noqa: E501
115
+ raise ApiValueError("Missing the required parameter `maven_maven_artifact` when calling `create`") # noqa: E501
116
+
117
+ collection_formats = {}
118
+
119
+ path_params = {}
120
+
121
+ query_params = []
122
+
123
+ header_params = {}
124
+
125
+ form_params = []
126
+ local_var_files = {}
127
+
128
+ body_params = None
129
+ if 'maven_maven_artifact' in local_var_params:
130
+ body_params = local_var_params['maven_maven_artifact']
131
+ # HTTP header `Accept`
132
+ header_params['Accept'] = self.api_client.select_header_accept(
133
+ ['application/json']) # noqa: E501
134
+
135
+ # HTTP header `Content-Type`
136
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
137
+ ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
138
+
139
+ # Authentication setting
140
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
141
+
142
+ return self.api_client.call_api(
143
+ '/pulp/api/v3/content/maven/artifact/', 'POST',
144
+ path_params,
145
+ query_params,
146
+ header_params,
147
+ body=body_params,
148
+ post_params=form_params,
149
+ files=local_var_files,
150
+ response_type='MavenMavenArtifactResponse', # noqa: E501
151
+ auth_settings=auth_settings,
152
+ async_req=local_var_params.get('async_req'),
153
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
154
+ _preload_content=local_var_params.get('_preload_content', True),
155
+ _request_timeout=local_var_params.get('_request_timeout'),
156
+ collection_formats=collection_formats)
157
+
158
+ def list(self, **kwargs): # noqa: E501
159
+ """List maven artifacts # noqa: E501
160
+
161
+ A ViewSet for MavenArtifact. # noqa: E501
162
+ This method makes a synchronous HTTP request by default. To make an
163
+ asynchronous HTTP request, please pass async_req=True
164
+ >>> thread = api.list(async_req=True)
165
+ >>> result = thread.get()
166
+
167
+ :param async_req bool: execute request asynchronously
168
+ :param str artifact_id: Filter results where artifact_id matches value
169
+ :param str filename: Filter results where filename matches value
170
+ :param str group_id: Filter results where group_id matches value
171
+ :param int limit: Number of results to return per page.
172
+ :param int offset: The initial index from which to return the results.
173
+ :param str ordering: Which field to use when ordering the results.
174
+ :param str repository_version: Repository Version referenced by HREF
175
+ :param str repository_version_added: Repository Version referenced by HREF
176
+ :param str repository_version_removed: Repository Version referenced by HREF
177
+ :param str version: Filter results where version matches value
178
+ :param str fields: A list of fields to include in the response.
179
+ :param str exclude_fields: A list of fields to exclude from the response.
180
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
181
+ be returned without reading/decoding response
182
+ data. Default is True.
183
+ :param _request_timeout: timeout setting for this request. If one
184
+ number provided, it will be total request
185
+ timeout. It can also be a pair (tuple) of
186
+ (connection, read) timeouts.
187
+ :return: PaginatedmavenMavenArtifactResponseList
188
+ If the method is called asynchronously,
189
+ returns the request thread.
190
+ """
191
+ kwargs['_return_http_data_only'] = True
192
+ return self.list_with_http_info(**kwargs) # noqa: E501
193
+
194
+ def list_with_http_info(self, **kwargs): # noqa: E501
195
+ """List maven artifacts # noqa: E501
196
+
197
+ A ViewSet for MavenArtifact. # noqa: E501
198
+ This method makes a synchronous HTTP request by default. To make an
199
+ asynchronous HTTP request, please pass async_req=True
200
+ >>> thread = api.list_with_http_info(async_req=True)
201
+ >>> result = thread.get()
202
+
203
+ :param async_req bool: execute request asynchronously
204
+ :param str artifact_id: Filter results where artifact_id matches value
205
+ :param str filename: Filter results where filename matches value
206
+ :param str group_id: Filter results where group_id matches value
207
+ :param int limit: Number of results to return per page.
208
+ :param int offset: The initial index from which to return the results.
209
+ :param str ordering: Which field to use when ordering the results.
210
+ :param str repository_version: Repository Version referenced by HREF
211
+ :param str repository_version_added: Repository Version referenced by HREF
212
+ :param str repository_version_removed: Repository Version referenced by HREF
213
+ :param str version: Filter results where version matches value
214
+ :param str fields: A list of fields to include in the response.
215
+ :param str exclude_fields: A list of fields to exclude from the response.
216
+ :param _return_http_data_only: response data without head status code
217
+ and headers
218
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
219
+ be returned without reading/decoding response
220
+ data. Default is True.
221
+ :param _request_timeout: timeout setting for this request. If one
222
+ number provided, it will be total request
223
+ timeout. It can also be a pair (tuple) of
224
+ (connection, read) timeouts.
225
+ :return: tuple(PaginatedmavenMavenArtifactResponseList, status_code(int), headers(HTTPHeaderDict))
226
+ If the method is called asynchronously,
227
+ returns the request thread.
228
+ """
229
+
230
+ local_var_params = locals()
231
+
232
+ all_params = [
233
+ 'artifact_id',
234
+ 'filename',
235
+ 'group_id',
236
+ 'limit',
237
+ 'offset',
238
+ 'ordering',
239
+ 'repository_version',
240
+ 'repository_version_added',
241
+ 'repository_version_removed',
242
+ 'version',
243
+ 'fields',
244
+ 'exclude_fields'
245
+ ]
246
+ all_params.extend(
247
+ [
248
+ 'async_req',
249
+ '_return_http_data_only',
250
+ '_preload_content',
251
+ '_request_timeout'
252
+ ]
253
+ )
254
+
255
+ for key, val in six.iteritems(local_var_params['kwargs']):
256
+ if key not in all_params:
257
+ raise ApiTypeError(
258
+ "Got an unexpected keyword argument '%s'"
259
+ " to method list" % key
260
+ )
261
+ local_var_params[key] = val
262
+ del local_var_params['kwargs']
263
+
264
+ collection_formats = {}
265
+
266
+ path_params = {}
267
+
268
+ query_params = []
269
+ if 'artifact_id' in local_var_params and local_var_params['artifact_id'] is not None: # noqa: E501
270
+ query_params.append(('artifact_id', local_var_params['artifact_id'])) # noqa: E501
271
+ if 'filename' in local_var_params and local_var_params['filename'] is not None: # noqa: E501
272
+ query_params.append(('filename', local_var_params['filename'])) # noqa: E501
273
+ if 'group_id' in local_var_params and local_var_params['group_id'] is not None: # noqa: E501
274
+ query_params.append(('group_id', local_var_params['group_id'])) # noqa: E501
275
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
276
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
277
+ if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
278
+ query_params.append(('offset', local_var_params['offset'])) # noqa: E501
279
+ if 'ordering' in local_var_params and local_var_params['ordering'] is not None: # noqa: E501
280
+ query_params.append(('ordering', local_var_params['ordering'])) # noqa: E501
281
+ if 'repository_version' in local_var_params and local_var_params['repository_version'] is not None: # noqa: E501
282
+ query_params.append(('repository_version', local_var_params['repository_version'])) # noqa: E501
283
+ if 'repository_version_added' in local_var_params and local_var_params['repository_version_added'] is not None: # noqa: E501
284
+ query_params.append(('repository_version_added', local_var_params['repository_version_added'])) # noqa: E501
285
+ if 'repository_version_removed' in local_var_params and local_var_params['repository_version_removed'] is not None: # noqa: E501
286
+ query_params.append(('repository_version_removed', local_var_params['repository_version_removed'])) # noqa: E501
287
+ if 'version' in local_var_params and local_var_params['version'] is not None: # noqa: E501
288
+ query_params.append(('version', local_var_params['version'])) # noqa: E501
289
+ if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
290
+ query_params.append(('fields', local_var_params['fields'])) # noqa: E501
291
+ if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
292
+ query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
293
+
294
+ header_params = {}
295
+
296
+ form_params = []
297
+ local_var_files = {}
298
+
299
+ body_params = None
300
+ # HTTP header `Accept`
301
+ header_params['Accept'] = self.api_client.select_header_accept(
302
+ ['application/json']) # noqa: E501
303
+
304
+ # Authentication setting
305
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
306
+
307
+ return self.api_client.call_api(
308
+ '/pulp/api/v3/content/maven/artifact/', 'GET',
309
+ path_params,
310
+ query_params,
311
+ header_params,
312
+ body=body_params,
313
+ post_params=form_params,
314
+ files=local_var_files,
315
+ response_type='PaginatedmavenMavenArtifactResponseList', # noqa: E501
316
+ auth_settings=auth_settings,
317
+ async_req=local_var_params.get('async_req'),
318
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
319
+ _preload_content=local_var_params.get('_preload_content', True),
320
+ _request_timeout=local_var_params.get('_request_timeout'),
321
+ collection_formats=collection_formats)
322
+
323
+ def read(self, maven_maven_artifact_href, **kwargs): # noqa: E501
324
+ """Inspect a maven artifact # noqa: E501
325
+
326
+ A ViewSet for MavenArtifact. # noqa: E501
327
+ This method makes a synchronous HTTP request by default. To make an
328
+ asynchronous HTTP request, please pass async_req=True
329
+ >>> thread = api.read(maven_maven_artifact_href, async_req=True)
330
+ >>> result = thread.get()
331
+
332
+ :param async_req bool: execute request asynchronously
333
+ :param str maven_maven_artifact_href: (required)
334
+ :param str fields: A list of fields to include in the response.
335
+ :param str exclude_fields: A list of fields to exclude from the response.
336
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
337
+ be returned without reading/decoding response
338
+ data. Default is True.
339
+ :param _request_timeout: timeout setting for this request. If one
340
+ number provided, it will be total request
341
+ timeout. It can also be a pair (tuple) of
342
+ (connection, read) timeouts.
343
+ :return: MavenMavenArtifactResponse
344
+ If the method is called asynchronously,
345
+ returns the request thread.
346
+ """
347
+ kwargs['_return_http_data_only'] = True
348
+ return self.read_with_http_info(maven_maven_artifact_href, **kwargs) # noqa: E501
349
+
350
+ def read_with_http_info(self, maven_maven_artifact_href, **kwargs): # noqa: E501
351
+ """Inspect a maven artifact # noqa: E501
352
+
353
+ A ViewSet for MavenArtifact. # noqa: E501
354
+ This method makes a synchronous HTTP request by default. To make an
355
+ asynchronous HTTP request, please pass async_req=True
356
+ >>> thread = api.read_with_http_info(maven_maven_artifact_href, async_req=True)
357
+ >>> result = thread.get()
358
+
359
+ :param async_req bool: execute request asynchronously
360
+ :param str maven_maven_artifact_href: (required)
361
+ :param str fields: A list of fields to include in the response.
362
+ :param str exclude_fields: A list of fields to exclude from the response.
363
+ :param _return_http_data_only: response data without head status code
364
+ and headers
365
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
366
+ be returned without reading/decoding response
367
+ data. Default is True.
368
+ :param _request_timeout: timeout setting for this request. If one
369
+ number provided, it will be total request
370
+ timeout. It can also be a pair (tuple) of
371
+ (connection, read) timeouts.
372
+ :return: tuple(MavenMavenArtifactResponse, status_code(int), headers(HTTPHeaderDict))
373
+ If the method is called asynchronously,
374
+ returns the request thread.
375
+ """
376
+
377
+ local_var_params = locals()
378
+
379
+ all_params = [
380
+ 'maven_maven_artifact_href',
381
+ 'fields',
382
+ 'exclude_fields'
383
+ ]
384
+ all_params.extend(
385
+ [
386
+ 'async_req',
387
+ '_return_http_data_only',
388
+ '_preload_content',
389
+ '_request_timeout'
390
+ ]
391
+ )
392
+
393
+ for key, val in six.iteritems(local_var_params['kwargs']):
394
+ if key not in all_params:
395
+ raise ApiTypeError(
396
+ "Got an unexpected keyword argument '%s'"
397
+ " to method read" % key
398
+ )
399
+ local_var_params[key] = val
400
+ del local_var_params['kwargs']
401
+ # verify the required parameter 'maven_maven_artifact_href' is set
402
+ if self.api_client.client_side_validation and ('maven_maven_artifact_href' not in local_var_params or # noqa: E501
403
+ local_var_params['maven_maven_artifact_href'] is None): # noqa: E501
404
+ raise ApiValueError("Missing the required parameter `maven_maven_artifact_href` when calling `read`") # noqa: E501
405
+
406
+ collection_formats = {}
407
+
408
+ path_params = {}
409
+ if 'maven_maven_artifact_href' in local_var_params:
410
+ path_params['maven_maven_artifact_href'] = local_var_params['maven_maven_artifact_href'] # noqa: E501
411
+
412
+ query_params = []
413
+ if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
414
+ query_params.append(('fields', local_var_params['fields'])) # noqa: E501
415
+ if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
416
+ query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
417
+
418
+ header_params = {}
419
+
420
+ form_params = []
421
+ local_var_files = {}
422
+
423
+ body_params = None
424
+ # HTTP header `Accept`
425
+ header_params['Accept'] = self.api_client.select_header_accept(
426
+ ['application/json']) # noqa: E501
427
+
428
+ # Authentication setting
429
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
430
+
431
+ return self.api_client.call_api(
432
+ '{maven_maven_artifact_href}', 'GET',
433
+ path_params,
434
+ query_params,
435
+ header_params,
436
+ body=body_params,
437
+ post_params=form_params,
438
+ files=local_var_files,
439
+ response_type='MavenMavenArtifactResponse', # noqa: E501
440
+ auth_settings=auth_settings,
441
+ async_req=local_var_params.get('async_req'),
442
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
443
+ _preload_content=local_var_params.get('_preload_content', True),
444
+ _request_timeout=local_var_params.get('_request_timeout'),
445
+ collection_formats=collection_formats)