crc-pulp-maven-client 20260116.4__tar.gz
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.
- crc_pulp_maven_client-20260116.4/PKG-INFO +4648 -0
- crc_pulp_maven_client-20260116.4/README.md +209 -0
- crc_pulp_maven_client-20260116.4/crc_pulp_maven_client.egg-info/PKG-INFO +4648 -0
- crc_pulp_maven_client-20260116.4/crc_pulp_maven_client.egg-info/SOURCES.txt +86 -0
- crc_pulp_maven_client-20260116.4/crc_pulp_maven_client.egg-info/dependency_links.txt +1 -0
- crc_pulp_maven_client-20260116.4/crc_pulp_maven_client.egg-info/requires.txt +4 -0
- crc_pulp_maven_client-20260116.4/crc_pulp_maven_client.egg-info/top_level.txt +1 -0
- crc_pulp_maven_client-20260116.4/pulpcore/__init__.py +2 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/__init__.py +2 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/__init__.py +66 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/api/__init__.py +10 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/api/api_maven_api.py +679 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/api/content_artifact_api.py +1879 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/api/distributions_maven_api.py +2940 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/api/remotes_maven_api.py +2968 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/api/repositories_maven_api.py +3300 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +1670 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/api_client.py +798 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/api_response.py +21 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/configuration.py +628 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/exceptions.py +200 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/__init__.py +44 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/async_operation_response.py +88 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/content_summary_response.py +92 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +95 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +127 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +116 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +140 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/maven_maven_remote.py +205 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +199 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/maven_maven_remote_response_hidden_fields_inner.py +90 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/maven_maven_repository.py +112 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +137 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +112 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +112 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +112 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +112 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +112 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +116 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +205 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +112 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/policy_enum.py +37 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/repair.py +88 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/repository_add_cached_content.py +88 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/repository_version_response.py +125 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/set_label.py +103 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/set_label_response.py +103 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/unset_label.py +96 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/models/unset_label_response.py +100 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/py.typed +0 -0
- crc_pulp_maven_client-20260116.4/pulpcore/client/pulp_maven/rest.py +258 -0
- crc_pulp_maven_client-20260116.4/pyproject.toml +89 -0
- crc_pulp_maven_client-20260116.4/setup.cfg +7 -0
- crc_pulp_maven_client-20260116.4/setup.py +53 -0
- crc_pulp_maven_client-20260116.4/test/test_api_maven_api.py +44 -0
- crc_pulp_maven_client-20260116.4/test/test_async_operation_response.py +53 -0
- crc_pulp_maven_client-20260116.4/test/test_content_artifact_api.py +67 -0
- crc_pulp_maven_client-20260116.4/test/test_content_summary_response.py +69 -0
- crc_pulp_maven_client-20260116.4/test/test_distributions_maven_api.py +88 -0
- crc_pulp_maven_client-20260116.4/test/test_maven_maven_artifact.py +59 -0
- crc_pulp_maven_client-20260116.4/test/test_maven_maven_artifact_response.py +65 -0
- crc_pulp_maven_client-20260116.4/test/test_maven_maven_distribution.py +62 -0
- crc_pulp_maven_client-20260116.4/test/test_maven_maven_distribution_response.py +68 -0
- crc_pulp_maven_client-20260116.4/test/test_maven_maven_remote.py +78 -0
- crc_pulp_maven_client-20260116.4/test/test_maven_maven_remote_response.py +82 -0
- crc_pulp_maven_client-20260116.4/test/test_maven_maven_remote_response_hidden_fields_inner.py +55 -0
- crc_pulp_maven_client-20260116.4/test/test_maven_maven_repository.py +59 -0
- crc_pulp_maven_client-20260116.4/test/test_maven_maven_repository_response.py +65 -0
- crc_pulp_maven_client-20260116.4/test/test_paginated_repository_version_response_list.py +79 -0
- crc_pulp_maven_client-20260116.4/test/test_paginatedmaven_maven_artifact_response_list.py +87 -0
- crc_pulp_maven_client-20260116.4/test/test_paginatedmaven_maven_distribution_response_list.py +91 -0
- crc_pulp_maven_client-20260116.4/test/test_paginatedmaven_maven_remote_response_list.py +119 -0
- crc_pulp_maven_client-20260116.4/test/test_paginatedmaven_maven_repository_response_list.py +87 -0
- crc_pulp_maven_client-20260116.4/test/test_patchedmaven_maven_distribution.py +60 -0
- crc_pulp_maven_client-20260116.4/test/test_patchedmaven_maven_remote.py +76 -0
- crc_pulp_maven_client-20260116.4/test/test_patchedmaven_maven_repository.py +58 -0
- crc_pulp_maven_client-20260116.4/test/test_policy_enum.py +34 -0
- crc_pulp_maven_client-20260116.4/test/test_remotes_maven_api.py +88 -0
- crc_pulp_maven_client-20260116.4/test/test_repair.py +52 -0
- crc_pulp_maven_client-20260116.4/test/test_repositories_maven_api.py +95 -0
- crc_pulp_maven_client-20260116.4/test/test_repositories_maven_versions_api.py +59 -0
- crc_pulp_maven_client-20260116.4/test/test_repository_add_cached_content.py +52 -0
- crc_pulp_maven_client-20260116.4/test/test_repository_version_response.py +69 -0
- crc_pulp_maven_client-20260116.4/test/test_set_label.py +55 -0
- crc_pulp_maven_client-20260116.4/test/test_set_label_response.py +55 -0
- crc_pulp_maven_client-20260116.4/test/test_unset_label.py +53 -0
- crc_pulp_maven_client-20260116.4/test/test_unset_label_response.py +54 -0
|
@@ -0,0 +1,4648 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: crc-pulp_maven-client
|
|
3
|
+
Version: 20260116.4
|
|
4
|
+
Summary: Pulp 3 API
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: Pulp Team
|
|
7
|
+
Author-email: pulp-list@redhat.com
|
|
8
|
+
License: GPLv2+
|
|
9
|
+
Keywords: pulp,pulpcore,client,Pulp 3 API
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: urllib3<2.7,>=1.25.3
|
|
12
|
+
Requires-Dist: python-dateutil<2.10.0,>=2.8.1
|
|
13
|
+
Requires-Dist: pydantic>=2
|
|
14
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: author-email
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: keywords
|
|
20
|
+
Dynamic: license
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: summary
|
|
23
|
+
|
|
24
|
+
# pulpcore.client.pulp_maven.ApiMavenApi
|
|
25
|
+
|
|
26
|
+
All URIs are relative to *https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com*
|
|
27
|
+
|
|
28
|
+
Method | HTTP request | Description
|
|
29
|
+
------------- | ------------- | -------------
|
|
30
|
+
[**get**](ApiMavenApi.md#get) | **GET** /api/pulp/maven/{pulp_domain}/{name}/{path} |
|
|
31
|
+
[**put**](ApiMavenApi.md#put) | **PUT** /api/pulp/maven/{pulp_domain}/{name}/{path} |
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# **get**
|
|
35
|
+
> get(name, path, pulp_domain, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
Responds to GET requests about manifests by reference
|
|
40
|
+
|
|
41
|
+
### Example
|
|
42
|
+
|
|
43
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
44
|
+
* Basic Authentication (basicAuth):
|
|
45
|
+
* Api Key Authentication (cookieAuth):
|
|
46
|
+
|
|
47
|
+
```python
|
|
48
|
+
import pulpcore.client.pulp_maven
|
|
49
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
50
|
+
from pprint import pprint
|
|
51
|
+
|
|
52
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
53
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
54
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
55
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
# The client must configure the authentication and authorization parameters
|
|
59
|
+
# in accordance with the API server security policy.
|
|
60
|
+
# Examples for each auth method are provided below, use the example that
|
|
61
|
+
# satisfies your auth use case.
|
|
62
|
+
|
|
63
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
64
|
+
|
|
65
|
+
# Configure HTTP basic authorization: basicAuth
|
|
66
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
67
|
+
username = os.environ["USERNAME"],
|
|
68
|
+
password = os.environ["PASSWORD"]
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
# Configure API key authorization: cookieAuth
|
|
72
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
73
|
+
|
|
74
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
75
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
76
|
+
|
|
77
|
+
# Enter a context with an instance of the API client
|
|
78
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
79
|
+
# Create an instance of the API class
|
|
80
|
+
api_instance = pulpcore.client.pulp_maven.ApiMavenApi(api_client)
|
|
81
|
+
name = 'name_example' # str |
|
|
82
|
+
path = 'path_example' # str |
|
|
83
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
84
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
85
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
86
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
87
|
+
|
|
88
|
+
try:
|
|
89
|
+
api_instance.get(name, path, pulp_domain, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
90
|
+
except Exception as e:
|
|
91
|
+
print("Exception when calling ApiMavenApi->get: %s\n" % e)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
Name | Type | Description | Notes
|
|
100
|
+
------------- | ------------- | ------------- | -------------
|
|
101
|
+
**name** | **str**| |
|
|
102
|
+
**path** | **str**| |
|
|
103
|
+
**pulp_domain** | **str**| |
|
|
104
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
105
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
106
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
107
|
+
|
|
108
|
+
### Return type
|
|
109
|
+
|
|
110
|
+
void (empty response body)
|
|
111
|
+
|
|
112
|
+
### Authorization
|
|
113
|
+
|
|
114
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
115
|
+
|
|
116
|
+
### HTTP request headers
|
|
117
|
+
|
|
118
|
+
- **Content-Type**: Not defined
|
|
119
|
+
- **Accept**: Not defined
|
|
120
|
+
|
|
121
|
+
### HTTP response details
|
|
122
|
+
|
|
123
|
+
| Status code | Description | Response headers |
|
|
124
|
+
|-------------|-------------|------------------|
|
|
125
|
+
**200** | No response body | - |
|
|
126
|
+
|
|
127
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
128
|
+
|
|
129
|
+
# **put**
|
|
130
|
+
> put(name, path, pulp_domain, x_task_diagnostics=x_task_diagnostics)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
ViewSet for interacting with maven deploy API
|
|
135
|
+
|
|
136
|
+
### Example
|
|
137
|
+
|
|
138
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
139
|
+
* Basic Authentication (basicAuth):
|
|
140
|
+
* Api Key Authentication (cookieAuth):
|
|
141
|
+
|
|
142
|
+
```python
|
|
143
|
+
import pulpcore.client.pulp_maven
|
|
144
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
145
|
+
from pprint import pprint
|
|
146
|
+
|
|
147
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
148
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
149
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
150
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
# The client must configure the authentication and authorization parameters
|
|
154
|
+
# in accordance with the API server security policy.
|
|
155
|
+
# Examples for each auth method are provided below, use the example that
|
|
156
|
+
# satisfies your auth use case.
|
|
157
|
+
|
|
158
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
159
|
+
|
|
160
|
+
# Configure HTTP basic authorization: basicAuth
|
|
161
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
162
|
+
username = os.environ["USERNAME"],
|
|
163
|
+
password = os.environ["PASSWORD"]
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
# Configure API key authorization: cookieAuth
|
|
167
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
168
|
+
|
|
169
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
170
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
171
|
+
|
|
172
|
+
# Enter a context with an instance of the API client
|
|
173
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
174
|
+
# Create an instance of the API class
|
|
175
|
+
api_instance = pulpcore.client.pulp_maven.ApiMavenApi(api_client)
|
|
176
|
+
name = 'name_example' # str |
|
|
177
|
+
path = 'path_example' # str |
|
|
178
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
179
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
180
|
+
|
|
181
|
+
try:
|
|
182
|
+
api_instance.put(name, path, pulp_domain, x_task_diagnostics=x_task_diagnostics)
|
|
183
|
+
except Exception as e:
|
|
184
|
+
print("Exception when calling ApiMavenApi->put: %s\n" % e)
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Parameters
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
Name | Type | Description | Notes
|
|
193
|
+
------------- | ------------- | ------------- | -------------
|
|
194
|
+
**name** | **str**| |
|
|
195
|
+
**path** | **str**| |
|
|
196
|
+
**pulp_domain** | **str**| |
|
|
197
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
198
|
+
|
|
199
|
+
### Return type
|
|
200
|
+
|
|
201
|
+
void (empty response body)
|
|
202
|
+
|
|
203
|
+
### Authorization
|
|
204
|
+
|
|
205
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
206
|
+
|
|
207
|
+
### HTTP request headers
|
|
208
|
+
|
|
209
|
+
- **Content-Type**: Not defined
|
|
210
|
+
- **Accept**: Not defined
|
|
211
|
+
|
|
212
|
+
### HTTP response details
|
|
213
|
+
|
|
214
|
+
| Status code | Description | Response headers |
|
|
215
|
+
|-------------|-------------|------------------|
|
|
216
|
+
**200** | No response body | - |
|
|
217
|
+
|
|
218
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
219
|
+
|
|
220
|
+
# AsyncOperationResponse
|
|
221
|
+
|
|
222
|
+
Serializer for asynchronous operations.
|
|
223
|
+
|
|
224
|
+
## Properties
|
|
225
|
+
|
|
226
|
+
Name | Type | Description | Notes
|
|
227
|
+
------------ | ------------- | ------------- | -------------
|
|
228
|
+
**task** | **str** | The href of the task. |
|
|
229
|
+
|
|
230
|
+
## Example
|
|
231
|
+
|
|
232
|
+
```python
|
|
233
|
+
from pulpcore.client.pulp_maven.models.async_operation_response import AsyncOperationResponse
|
|
234
|
+
|
|
235
|
+
# TODO update the JSON string below
|
|
236
|
+
json = "{}"
|
|
237
|
+
# create an instance of AsyncOperationResponse from a JSON string
|
|
238
|
+
async_operation_response_instance = AsyncOperationResponse.from_json(json)
|
|
239
|
+
# print the JSON string representation of the object
|
|
240
|
+
print(AsyncOperationResponse.to_json())
|
|
241
|
+
|
|
242
|
+
# convert the object into a dict
|
|
243
|
+
async_operation_response_dict = async_operation_response_instance.to_dict()
|
|
244
|
+
# create an instance of AsyncOperationResponse from a dict
|
|
245
|
+
async_operation_response_from_dict = AsyncOperationResponse.from_dict(async_operation_response_dict)
|
|
246
|
+
```
|
|
247
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
# pulpcore.client.pulp_maven.ContentArtifactApi
|
|
251
|
+
|
|
252
|
+
All URIs are relative to *https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com*
|
|
253
|
+
|
|
254
|
+
Method | HTTP request | Description
|
|
255
|
+
------------- | ------------- | -------------
|
|
256
|
+
[**create**](ContentArtifactApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/content/maven/artifact/ | Create a maven artifact
|
|
257
|
+
[**list**](ContentArtifactApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/content/maven/artifact/ | List maven artifacts
|
|
258
|
+
[**read**](ContentArtifactApi.md#read) | **GET** {maven_maven_artifact_href} | Inspect a maven artifact
|
|
259
|
+
[**set_label**](ContentArtifactApi.md#set_label) | **POST** {maven_maven_artifact_href}set_label/ | Set a label
|
|
260
|
+
[**unset_label**](ContentArtifactApi.md#unset_label) | **POST** {maven_maven_artifact_href}unset_label/ | Unset a label
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
# **create**
|
|
264
|
+
> MavenMavenArtifactResponse create(pulp_domain, maven_maven_artifact, x_task_diagnostics=x_task_diagnostics)
|
|
265
|
+
|
|
266
|
+
Create a maven artifact
|
|
267
|
+
|
|
268
|
+
A ViewSet for MavenArtifact.
|
|
269
|
+
|
|
270
|
+
### Example
|
|
271
|
+
|
|
272
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
273
|
+
* Basic Authentication (basicAuth):
|
|
274
|
+
* Api Key Authentication (cookieAuth):
|
|
275
|
+
|
|
276
|
+
```python
|
|
277
|
+
import pulpcore.client.pulp_maven
|
|
278
|
+
from pulpcore.client.pulp_maven.models.maven_maven_artifact import MavenMavenArtifact
|
|
279
|
+
from pulpcore.client.pulp_maven.models.maven_maven_artifact_response import MavenMavenArtifactResponse
|
|
280
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
281
|
+
from pprint import pprint
|
|
282
|
+
|
|
283
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
284
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
285
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
286
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
287
|
+
)
|
|
288
|
+
|
|
289
|
+
# The client must configure the authentication and authorization parameters
|
|
290
|
+
# in accordance with the API server security policy.
|
|
291
|
+
# Examples for each auth method are provided below, use the example that
|
|
292
|
+
# satisfies your auth use case.
|
|
293
|
+
|
|
294
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
295
|
+
|
|
296
|
+
# Configure HTTP basic authorization: basicAuth
|
|
297
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
298
|
+
username = os.environ["USERNAME"],
|
|
299
|
+
password = os.environ["PASSWORD"]
|
|
300
|
+
)
|
|
301
|
+
|
|
302
|
+
# Configure API key authorization: cookieAuth
|
|
303
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
304
|
+
|
|
305
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
306
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
307
|
+
|
|
308
|
+
# Enter a context with an instance of the API client
|
|
309
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
310
|
+
# Create an instance of the API class
|
|
311
|
+
api_instance = pulpcore.client.pulp_maven.ContentArtifactApi(api_client)
|
|
312
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
313
|
+
maven_maven_artifact = pulpcore.client.pulp_maven.MavenMavenArtifact() # MavenMavenArtifact |
|
|
314
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
315
|
+
|
|
316
|
+
try:
|
|
317
|
+
# Create a maven artifact
|
|
318
|
+
api_response = api_instance.create(pulp_domain, maven_maven_artifact, x_task_diagnostics=x_task_diagnostics)
|
|
319
|
+
print("The response of ContentArtifactApi->create:\n")
|
|
320
|
+
pprint(api_response)
|
|
321
|
+
except Exception as e:
|
|
322
|
+
print("Exception when calling ContentArtifactApi->create: %s\n" % e)
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
### Parameters
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
Name | Type | Description | Notes
|
|
331
|
+
------------- | ------------- | ------------- | -------------
|
|
332
|
+
**pulp_domain** | **str**| |
|
|
333
|
+
**maven_maven_artifact** | [**MavenMavenArtifact**](MavenMavenArtifact.md)| |
|
|
334
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
335
|
+
|
|
336
|
+
### Return type
|
|
337
|
+
|
|
338
|
+
[**MavenMavenArtifactResponse**](MavenMavenArtifactResponse.md)
|
|
339
|
+
|
|
340
|
+
### Authorization
|
|
341
|
+
|
|
342
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
343
|
+
|
|
344
|
+
### HTTP request headers
|
|
345
|
+
|
|
346
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
347
|
+
- **Accept**: application/json
|
|
348
|
+
|
|
349
|
+
### HTTP response details
|
|
350
|
+
|
|
351
|
+
| Status code | Description | Response headers |
|
|
352
|
+
|-------------|-------------|------------------|
|
|
353
|
+
**201** | | - |
|
|
354
|
+
|
|
355
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
356
|
+
|
|
357
|
+
# **list**
|
|
358
|
+
> PaginatedmavenMavenArtifactResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, artifact_id=artifact_id, filename=filename, group_id=group_id, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, version=version, fields=fields, exclude_fields=exclude_fields)
|
|
359
|
+
|
|
360
|
+
List maven artifacts
|
|
361
|
+
|
|
362
|
+
A ViewSet for MavenArtifact.
|
|
363
|
+
|
|
364
|
+
### Example
|
|
365
|
+
|
|
366
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
367
|
+
* Basic Authentication (basicAuth):
|
|
368
|
+
* Api Key Authentication (cookieAuth):
|
|
369
|
+
|
|
370
|
+
```python
|
|
371
|
+
import pulpcore.client.pulp_maven
|
|
372
|
+
from pulpcore.client.pulp_maven.models.paginatedmaven_maven_artifact_response_list import PaginatedmavenMavenArtifactResponseList
|
|
373
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
374
|
+
from pprint import pprint
|
|
375
|
+
|
|
376
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
377
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
378
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
379
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
380
|
+
)
|
|
381
|
+
|
|
382
|
+
# The client must configure the authentication and authorization parameters
|
|
383
|
+
# in accordance with the API server security policy.
|
|
384
|
+
# Examples for each auth method are provided below, use the example that
|
|
385
|
+
# satisfies your auth use case.
|
|
386
|
+
|
|
387
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
388
|
+
|
|
389
|
+
# Configure HTTP basic authorization: basicAuth
|
|
390
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
391
|
+
username = os.environ["USERNAME"],
|
|
392
|
+
password = os.environ["PASSWORD"]
|
|
393
|
+
)
|
|
394
|
+
|
|
395
|
+
# Configure API key authorization: cookieAuth
|
|
396
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
397
|
+
|
|
398
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
399
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
400
|
+
|
|
401
|
+
# Enter a context with an instance of the API client
|
|
402
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
403
|
+
# Create an instance of the API class
|
|
404
|
+
api_instance = pulpcore.client.pulp_maven.ContentArtifactApi(api_client)
|
|
405
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
406
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
407
|
+
artifact_id = 'artifact_id_example' # str | Filter results where artifact_id matches value (optional)
|
|
408
|
+
filename = 'filename_example' # str | Filter results where filename matches value (optional)
|
|
409
|
+
group_id = 'group_id_example' # str | Filter results where group_id matches value (optional)
|
|
410
|
+
limit = 56 # int | Number of results to return per page. (optional)
|
|
411
|
+
offset = 56 # int | The initial index from which to return the results. (optional)
|
|
412
|
+
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `group_id` - Group id * `-group_id` - Group id (descending) * `artifact_id` - Artifact id * `-artifact_id` - Artifact id (descending) * `version` - Version * `-version` - Version (descending) * `filename` - Filename * `-filename` - Filename (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
|
|
413
|
+
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
|
|
414
|
+
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
415
|
+
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
416
|
+
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
417
|
+
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
|
|
418
|
+
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
|
|
419
|
+
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
|
|
420
|
+
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
|
|
421
|
+
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
|
|
422
|
+
version = 'version_example' # str | Filter results where version matches value (optional)
|
|
423
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
424
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
425
|
+
|
|
426
|
+
try:
|
|
427
|
+
# List maven artifacts
|
|
428
|
+
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, artifact_id=artifact_id, filename=filename, group_id=group_id, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, version=version, fields=fields, exclude_fields=exclude_fields)
|
|
429
|
+
print("The response of ContentArtifactApi->list:\n")
|
|
430
|
+
pprint(api_response)
|
|
431
|
+
except Exception as e:
|
|
432
|
+
print("Exception when calling ContentArtifactApi->list: %s\n" % e)
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
### Parameters
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
Name | Type | Description | Notes
|
|
441
|
+
------------- | ------------- | ------------- | -------------
|
|
442
|
+
**pulp_domain** | **str**| |
|
|
443
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
444
|
+
**artifact_id** | **str**| Filter results where artifact_id matches value | [optional]
|
|
445
|
+
**filename** | **str**| Filter results where filename matches value | [optional]
|
|
446
|
+
**group_id** | **str**| Filter results where group_id matches value | [optional]
|
|
447
|
+
**limit** | **int**| Number of results to return per page. | [optional]
|
|
448
|
+
**offset** | **int**| The initial index from which to return the results. | [optional]
|
|
449
|
+
**ordering** | [**List[str]**](str.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `group_id` - Group id * `-group_id` - Group id (descending) * `artifact_id` - Artifact id * `-artifact_id` - Artifact id (descending) * `version` - Version * `-version` - Version (descending) * `filename` - Filename * `-filename` - Filename (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
|
450
|
+
**orphaned_for** | **float**| Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional]
|
|
451
|
+
**prn__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
452
|
+
**pulp_href__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
453
|
+
**pulp_id__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
454
|
+
**pulp_label_select** | **str**| Filter labels by search string | [optional]
|
|
455
|
+
**q** | **str**| Filter results by using NOT, AND and OR operations on other filters | [optional]
|
|
456
|
+
**repository_version** | **str**| Repository Version referenced by HREF/PRN | [optional]
|
|
457
|
+
**repository_version_added** | **str**| Repository Version referenced by HREF/PRN | [optional]
|
|
458
|
+
**repository_version_removed** | **str**| Repository Version referenced by HREF/PRN | [optional]
|
|
459
|
+
**version** | **str**| Filter results where version matches value | [optional]
|
|
460
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
461
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
462
|
+
|
|
463
|
+
### Return type
|
|
464
|
+
|
|
465
|
+
[**PaginatedmavenMavenArtifactResponseList**](PaginatedmavenMavenArtifactResponseList.md)
|
|
466
|
+
|
|
467
|
+
### Authorization
|
|
468
|
+
|
|
469
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
470
|
+
|
|
471
|
+
### HTTP request headers
|
|
472
|
+
|
|
473
|
+
- **Content-Type**: Not defined
|
|
474
|
+
- **Accept**: application/json
|
|
475
|
+
|
|
476
|
+
### HTTP response details
|
|
477
|
+
|
|
478
|
+
| Status code | Description | Response headers |
|
|
479
|
+
|-------------|-------------|------------------|
|
|
480
|
+
**200** | | - |
|
|
481
|
+
|
|
482
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
483
|
+
|
|
484
|
+
# **read**
|
|
485
|
+
> MavenMavenArtifactResponse read(maven_maven_artifact_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
486
|
+
|
|
487
|
+
Inspect a maven artifact
|
|
488
|
+
|
|
489
|
+
A ViewSet for MavenArtifact.
|
|
490
|
+
|
|
491
|
+
### Example
|
|
492
|
+
|
|
493
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
494
|
+
* Basic Authentication (basicAuth):
|
|
495
|
+
* Api Key Authentication (cookieAuth):
|
|
496
|
+
|
|
497
|
+
```python
|
|
498
|
+
import pulpcore.client.pulp_maven
|
|
499
|
+
from pulpcore.client.pulp_maven.models.maven_maven_artifact_response import MavenMavenArtifactResponse
|
|
500
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
501
|
+
from pprint import pprint
|
|
502
|
+
|
|
503
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
504
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
505
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
506
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
507
|
+
)
|
|
508
|
+
|
|
509
|
+
# The client must configure the authentication and authorization parameters
|
|
510
|
+
# in accordance with the API server security policy.
|
|
511
|
+
# Examples for each auth method are provided below, use the example that
|
|
512
|
+
# satisfies your auth use case.
|
|
513
|
+
|
|
514
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
515
|
+
|
|
516
|
+
# Configure HTTP basic authorization: basicAuth
|
|
517
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
518
|
+
username = os.environ["USERNAME"],
|
|
519
|
+
password = os.environ["PASSWORD"]
|
|
520
|
+
)
|
|
521
|
+
|
|
522
|
+
# Configure API key authorization: cookieAuth
|
|
523
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
524
|
+
|
|
525
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
526
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
527
|
+
|
|
528
|
+
# Enter a context with an instance of the API client
|
|
529
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
530
|
+
# Create an instance of the API class
|
|
531
|
+
api_instance = pulpcore.client.pulp_maven.ContentArtifactApi(api_client)
|
|
532
|
+
maven_maven_artifact_href = 'maven_maven_artifact_href_example' # str |
|
|
533
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
534
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
535
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
536
|
+
|
|
537
|
+
try:
|
|
538
|
+
# Inspect a maven artifact
|
|
539
|
+
api_response = api_instance.read(maven_maven_artifact_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
540
|
+
print("The response of ContentArtifactApi->read:\n")
|
|
541
|
+
pprint(api_response)
|
|
542
|
+
except Exception as e:
|
|
543
|
+
print("Exception when calling ContentArtifactApi->read: %s\n" % e)
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
### Parameters
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
Name | Type | Description | Notes
|
|
552
|
+
------------- | ------------- | ------------- | -------------
|
|
553
|
+
**maven_maven_artifact_href** | **str**| |
|
|
554
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
555
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
556
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
557
|
+
|
|
558
|
+
### Return type
|
|
559
|
+
|
|
560
|
+
[**MavenMavenArtifactResponse**](MavenMavenArtifactResponse.md)
|
|
561
|
+
|
|
562
|
+
### Authorization
|
|
563
|
+
|
|
564
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
565
|
+
|
|
566
|
+
### HTTP request headers
|
|
567
|
+
|
|
568
|
+
- **Content-Type**: Not defined
|
|
569
|
+
- **Accept**: application/json
|
|
570
|
+
|
|
571
|
+
### HTTP response details
|
|
572
|
+
|
|
573
|
+
| Status code | Description | Response headers |
|
|
574
|
+
|-------------|-------------|------------------|
|
|
575
|
+
**200** | | - |
|
|
576
|
+
|
|
577
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
578
|
+
|
|
579
|
+
# **set_label**
|
|
580
|
+
> SetLabelResponse set_label(maven_maven_artifact_href, set_label, x_task_diagnostics=x_task_diagnostics)
|
|
581
|
+
|
|
582
|
+
Set a label
|
|
583
|
+
|
|
584
|
+
Set a single pulp_label on the object to a specific value or null.
|
|
585
|
+
|
|
586
|
+
### Example
|
|
587
|
+
|
|
588
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
589
|
+
* Basic Authentication (basicAuth):
|
|
590
|
+
* Api Key Authentication (cookieAuth):
|
|
591
|
+
|
|
592
|
+
```python
|
|
593
|
+
import pulpcore.client.pulp_maven
|
|
594
|
+
from pulpcore.client.pulp_maven.models.set_label import SetLabel
|
|
595
|
+
from pulpcore.client.pulp_maven.models.set_label_response import SetLabelResponse
|
|
596
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
597
|
+
from pprint import pprint
|
|
598
|
+
|
|
599
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
600
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
601
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
602
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
603
|
+
)
|
|
604
|
+
|
|
605
|
+
# The client must configure the authentication and authorization parameters
|
|
606
|
+
# in accordance with the API server security policy.
|
|
607
|
+
# Examples for each auth method are provided below, use the example that
|
|
608
|
+
# satisfies your auth use case.
|
|
609
|
+
|
|
610
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
611
|
+
|
|
612
|
+
# Configure HTTP basic authorization: basicAuth
|
|
613
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
614
|
+
username = os.environ["USERNAME"],
|
|
615
|
+
password = os.environ["PASSWORD"]
|
|
616
|
+
)
|
|
617
|
+
|
|
618
|
+
# Configure API key authorization: cookieAuth
|
|
619
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
620
|
+
|
|
621
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
622
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
623
|
+
|
|
624
|
+
# Enter a context with an instance of the API client
|
|
625
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
626
|
+
# Create an instance of the API class
|
|
627
|
+
api_instance = pulpcore.client.pulp_maven.ContentArtifactApi(api_client)
|
|
628
|
+
maven_maven_artifact_href = 'maven_maven_artifact_href_example' # str |
|
|
629
|
+
set_label = pulpcore.client.pulp_maven.SetLabel() # SetLabel |
|
|
630
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
631
|
+
|
|
632
|
+
try:
|
|
633
|
+
# Set a label
|
|
634
|
+
api_response = api_instance.set_label(maven_maven_artifact_href, set_label, x_task_diagnostics=x_task_diagnostics)
|
|
635
|
+
print("The response of ContentArtifactApi->set_label:\n")
|
|
636
|
+
pprint(api_response)
|
|
637
|
+
except Exception as e:
|
|
638
|
+
print("Exception when calling ContentArtifactApi->set_label: %s\n" % e)
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
### Parameters
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
Name | Type | Description | Notes
|
|
647
|
+
------------- | ------------- | ------------- | -------------
|
|
648
|
+
**maven_maven_artifact_href** | **str**| |
|
|
649
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
|
650
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
651
|
+
|
|
652
|
+
### Return type
|
|
653
|
+
|
|
654
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
|
655
|
+
|
|
656
|
+
### Authorization
|
|
657
|
+
|
|
658
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
659
|
+
|
|
660
|
+
### HTTP request headers
|
|
661
|
+
|
|
662
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
663
|
+
- **Accept**: application/json
|
|
664
|
+
|
|
665
|
+
### HTTP response details
|
|
666
|
+
|
|
667
|
+
| Status code | Description | Response headers |
|
|
668
|
+
|-------------|-------------|------------------|
|
|
669
|
+
**201** | | - |
|
|
670
|
+
|
|
671
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
672
|
+
|
|
673
|
+
# **unset_label**
|
|
674
|
+
> UnsetLabelResponse unset_label(maven_maven_artifact_href, unset_label, x_task_diagnostics=x_task_diagnostics)
|
|
675
|
+
|
|
676
|
+
Unset a label
|
|
677
|
+
|
|
678
|
+
Unset a single pulp_label on the object.
|
|
679
|
+
|
|
680
|
+
### Example
|
|
681
|
+
|
|
682
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
683
|
+
* Basic Authentication (basicAuth):
|
|
684
|
+
* Api Key Authentication (cookieAuth):
|
|
685
|
+
|
|
686
|
+
```python
|
|
687
|
+
import pulpcore.client.pulp_maven
|
|
688
|
+
from pulpcore.client.pulp_maven.models.unset_label import UnsetLabel
|
|
689
|
+
from pulpcore.client.pulp_maven.models.unset_label_response import UnsetLabelResponse
|
|
690
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
691
|
+
from pprint import pprint
|
|
692
|
+
|
|
693
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
694
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
695
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
696
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
697
|
+
)
|
|
698
|
+
|
|
699
|
+
# The client must configure the authentication and authorization parameters
|
|
700
|
+
# in accordance with the API server security policy.
|
|
701
|
+
# Examples for each auth method are provided below, use the example that
|
|
702
|
+
# satisfies your auth use case.
|
|
703
|
+
|
|
704
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
705
|
+
|
|
706
|
+
# Configure HTTP basic authorization: basicAuth
|
|
707
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
708
|
+
username = os.environ["USERNAME"],
|
|
709
|
+
password = os.environ["PASSWORD"]
|
|
710
|
+
)
|
|
711
|
+
|
|
712
|
+
# Configure API key authorization: cookieAuth
|
|
713
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
714
|
+
|
|
715
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
716
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
717
|
+
|
|
718
|
+
# Enter a context with an instance of the API client
|
|
719
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
720
|
+
# Create an instance of the API class
|
|
721
|
+
api_instance = pulpcore.client.pulp_maven.ContentArtifactApi(api_client)
|
|
722
|
+
maven_maven_artifact_href = 'maven_maven_artifact_href_example' # str |
|
|
723
|
+
unset_label = pulpcore.client.pulp_maven.UnsetLabel() # UnsetLabel |
|
|
724
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
725
|
+
|
|
726
|
+
try:
|
|
727
|
+
# Unset a label
|
|
728
|
+
api_response = api_instance.unset_label(maven_maven_artifact_href, unset_label, x_task_diagnostics=x_task_diagnostics)
|
|
729
|
+
print("The response of ContentArtifactApi->unset_label:\n")
|
|
730
|
+
pprint(api_response)
|
|
731
|
+
except Exception as e:
|
|
732
|
+
print("Exception when calling ContentArtifactApi->unset_label: %s\n" % e)
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
### Parameters
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
Name | Type | Description | Notes
|
|
741
|
+
------------- | ------------- | ------------- | -------------
|
|
742
|
+
**maven_maven_artifact_href** | **str**| |
|
|
743
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
|
744
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
745
|
+
|
|
746
|
+
### Return type
|
|
747
|
+
|
|
748
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
|
749
|
+
|
|
750
|
+
### Authorization
|
|
751
|
+
|
|
752
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
753
|
+
|
|
754
|
+
### HTTP request headers
|
|
755
|
+
|
|
756
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
757
|
+
- **Accept**: application/json
|
|
758
|
+
|
|
759
|
+
### HTTP response details
|
|
760
|
+
|
|
761
|
+
| Status code | Description | Response headers |
|
|
762
|
+
|-------------|-------------|------------------|
|
|
763
|
+
**201** | | - |
|
|
764
|
+
|
|
765
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
766
|
+
|
|
767
|
+
# ContentSummaryResponse
|
|
768
|
+
|
|
769
|
+
Serializer for the RepositoryVersion content summary
|
|
770
|
+
|
|
771
|
+
## Properties
|
|
772
|
+
|
|
773
|
+
Name | Type | Description | Notes
|
|
774
|
+
------------ | ------------- | ------------- | -------------
|
|
775
|
+
**added** | **Dict[str, object]** | |
|
|
776
|
+
**removed** | **Dict[str, object]** | |
|
|
777
|
+
**present** | **Dict[str, object]** | |
|
|
778
|
+
|
|
779
|
+
## Example
|
|
780
|
+
|
|
781
|
+
```python
|
|
782
|
+
from pulpcore.client.pulp_maven.models.content_summary_response import ContentSummaryResponse
|
|
783
|
+
|
|
784
|
+
# TODO update the JSON string below
|
|
785
|
+
json = "{}"
|
|
786
|
+
# create an instance of ContentSummaryResponse from a JSON string
|
|
787
|
+
content_summary_response_instance = ContentSummaryResponse.from_json(json)
|
|
788
|
+
# print the JSON string representation of the object
|
|
789
|
+
print(ContentSummaryResponse.to_json())
|
|
790
|
+
|
|
791
|
+
# convert the object into a dict
|
|
792
|
+
content_summary_response_dict = content_summary_response_instance.to_dict()
|
|
793
|
+
# create an instance of ContentSummaryResponse from a dict
|
|
794
|
+
content_summary_response_from_dict = ContentSummaryResponse.from_dict(content_summary_response_dict)
|
|
795
|
+
```
|
|
796
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
# pulpcore.client.pulp_maven.DistributionsMavenApi
|
|
800
|
+
|
|
801
|
+
All URIs are relative to *https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com*
|
|
802
|
+
|
|
803
|
+
Method | HTTP request | Description
|
|
804
|
+
------------- | ------------- | -------------
|
|
805
|
+
[**create**](DistributionsMavenApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/distributions/maven/maven/ | Create a maven distribution
|
|
806
|
+
[**delete**](DistributionsMavenApi.md#delete) | **DELETE** {maven_maven_distribution_href} | Delete a maven distribution
|
|
807
|
+
[**list**](DistributionsMavenApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/distributions/maven/maven/ | List maven distributions
|
|
808
|
+
[**partial_update**](DistributionsMavenApi.md#partial_update) | **PATCH** {maven_maven_distribution_href} | Update a maven distribution
|
|
809
|
+
[**read**](DistributionsMavenApi.md#read) | **GET** {maven_maven_distribution_href} | Inspect a maven distribution
|
|
810
|
+
[**set_label**](DistributionsMavenApi.md#set_label) | **POST** {maven_maven_distribution_href}set_label/ | Set a label
|
|
811
|
+
[**unset_label**](DistributionsMavenApi.md#unset_label) | **POST** {maven_maven_distribution_href}unset_label/ | Unset a label
|
|
812
|
+
[**update**](DistributionsMavenApi.md#update) | **PUT** {maven_maven_distribution_href} | Update a maven distribution
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
# **create**
|
|
816
|
+
> AsyncOperationResponse create(pulp_domain, maven_maven_distribution, x_task_diagnostics=x_task_diagnostics)
|
|
817
|
+
|
|
818
|
+
Create a maven distribution
|
|
819
|
+
|
|
820
|
+
Trigger an asynchronous create task
|
|
821
|
+
|
|
822
|
+
### Example
|
|
823
|
+
|
|
824
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
825
|
+
* Basic Authentication (basicAuth):
|
|
826
|
+
* Api Key Authentication (cookieAuth):
|
|
827
|
+
|
|
828
|
+
```python
|
|
829
|
+
import pulpcore.client.pulp_maven
|
|
830
|
+
from pulpcore.client.pulp_maven.models.async_operation_response import AsyncOperationResponse
|
|
831
|
+
from pulpcore.client.pulp_maven.models.maven_maven_distribution import MavenMavenDistribution
|
|
832
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
833
|
+
from pprint import pprint
|
|
834
|
+
|
|
835
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
836
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
837
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
838
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
839
|
+
)
|
|
840
|
+
|
|
841
|
+
# The client must configure the authentication and authorization parameters
|
|
842
|
+
# in accordance with the API server security policy.
|
|
843
|
+
# Examples for each auth method are provided below, use the example that
|
|
844
|
+
# satisfies your auth use case.
|
|
845
|
+
|
|
846
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
847
|
+
|
|
848
|
+
# Configure HTTP basic authorization: basicAuth
|
|
849
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
850
|
+
username = os.environ["USERNAME"],
|
|
851
|
+
password = os.environ["PASSWORD"]
|
|
852
|
+
)
|
|
853
|
+
|
|
854
|
+
# Configure API key authorization: cookieAuth
|
|
855
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
856
|
+
|
|
857
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
858
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
859
|
+
|
|
860
|
+
# Enter a context with an instance of the API client
|
|
861
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
862
|
+
# Create an instance of the API class
|
|
863
|
+
api_instance = pulpcore.client.pulp_maven.DistributionsMavenApi(api_client)
|
|
864
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
865
|
+
maven_maven_distribution = pulpcore.client.pulp_maven.MavenMavenDistribution() # MavenMavenDistribution |
|
|
866
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
867
|
+
|
|
868
|
+
try:
|
|
869
|
+
# Create a maven distribution
|
|
870
|
+
api_response = api_instance.create(pulp_domain, maven_maven_distribution, x_task_diagnostics=x_task_diagnostics)
|
|
871
|
+
print("The response of DistributionsMavenApi->create:\n")
|
|
872
|
+
pprint(api_response)
|
|
873
|
+
except Exception as e:
|
|
874
|
+
print("Exception when calling DistributionsMavenApi->create: %s\n" % e)
|
|
875
|
+
```
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
### Parameters
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
Name | Type | Description | Notes
|
|
883
|
+
------------- | ------------- | ------------- | -------------
|
|
884
|
+
**pulp_domain** | **str**| |
|
|
885
|
+
**maven_maven_distribution** | [**MavenMavenDistribution**](MavenMavenDistribution.md)| |
|
|
886
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
887
|
+
|
|
888
|
+
### Return type
|
|
889
|
+
|
|
890
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
891
|
+
|
|
892
|
+
### Authorization
|
|
893
|
+
|
|
894
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
895
|
+
|
|
896
|
+
### HTTP request headers
|
|
897
|
+
|
|
898
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
899
|
+
- **Accept**: application/json
|
|
900
|
+
|
|
901
|
+
### HTTP response details
|
|
902
|
+
|
|
903
|
+
| Status code | Description | Response headers |
|
|
904
|
+
|-------------|-------------|------------------|
|
|
905
|
+
**202** | | - |
|
|
906
|
+
|
|
907
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
908
|
+
|
|
909
|
+
# **delete**
|
|
910
|
+
> AsyncOperationResponse delete(maven_maven_distribution_href, x_task_diagnostics=x_task_diagnostics)
|
|
911
|
+
|
|
912
|
+
Delete a maven distribution
|
|
913
|
+
|
|
914
|
+
Trigger an asynchronous delete task
|
|
915
|
+
|
|
916
|
+
### Example
|
|
917
|
+
|
|
918
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
919
|
+
* Basic Authentication (basicAuth):
|
|
920
|
+
* Api Key Authentication (cookieAuth):
|
|
921
|
+
|
|
922
|
+
```python
|
|
923
|
+
import pulpcore.client.pulp_maven
|
|
924
|
+
from pulpcore.client.pulp_maven.models.async_operation_response import AsyncOperationResponse
|
|
925
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
926
|
+
from pprint import pprint
|
|
927
|
+
|
|
928
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
929
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
930
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
931
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
932
|
+
)
|
|
933
|
+
|
|
934
|
+
# The client must configure the authentication and authorization parameters
|
|
935
|
+
# in accordance with the API server security policy.
|
|
936
|
+
# Examples for each auth method are provided below, use the example that
|
|
937
|
+
# satisfies your auth use case.
|
|
938
|
+
|
|
939
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
940
|
+
|
|
941
|
+
# Configure HTTP basic authorization: basicAuth
|
|
942
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
943
|
+
username = os.environ["USERNAME"],
|
|
944
|
+
password = os.environ["PASSWORD"]
|
|
945
|
+
)
|
|
946
|
+
|
|
947
|
+
# Configure API key authorization: cookieAuth
|
|
948
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
949
|
+
|
|
950
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
951
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
952
|
+
|
|
953
|
+
# Enter a context with an instance of the API client
|
|
954
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
955
|
+
# Create an instance of the API class
|
|
956
|
+
api_instance = pulpcore.client.pulp_maven.DistributionsMavenApi(api_client)
|
|
957
|
+
maven_maven_distribution_href = 'maven_maven_distribution_href_example' # str |
|
|
958
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
959
|
+
|
|
960
|
+
try:
|
|
961
|
+
# Delete a maven distribution
|
|
962
|
+
api_response = api_instance.delete(maven_maven_distribution_href, x_task_diagnostics=x_task_diagnostics)
|
|
963
|
+
print("The response of DistributionsMavenApi->delete:\n")
|
|
964
|
+
pprint(api_response)
|
|
965
|
+
except Exception as e:
|
|
966
|
+
print("Exception when calling DistributionsMavenApi->delete: %s\n" % e)
|
|
967
|
+
```
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
### Parameters
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
Name | Type | Description | Notes
|
|
975
|
+
------------- | ------------- | ------------- | -------------
|
|
976
|
+
**maven_maven_distribution_href** | **str**| |
|
|
977
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
978
|
+
|
|
979
|
+
### Return type
|
|
980
|
+
|
|
981
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
982
|
+
|
|
983
|
+
### Authorization
|
|
984
|
+
|
|
985
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
986
|
+
|
|
987
|
+
### HTTP request headers
|
|
988
|
+
|
|
989
|
+
- **Content-Type**: Not defined
|
|
990
|
+
- **Accept**: application/json
|
|
991
|
+
|
|
992
|
+
### HTTP response details
|
|
993
|
+
|
|
994
|
+
| Status code | Description | Response headers |
|
|
995
|
+
|-------------|-------------|------------------|
|
|
996
|
+
**202** | | - |
|
|
997
|
+
|
|
998
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
999
|
+
|
|
1000
|
+
# **list**
|
|
1001
|
+
> PaginatedmavenMavenDistributionResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, base_path=base_path, base_path__contains=base_path__contains, base_path__icontains=base_path__icontains, base_path__in=base_path__in, checkpoint=checkpoint, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository=repository, repository__in=repository__in, with_content=with_content, fields=fields, exclude_fields=exclude_fields)
|
|
1002
|
+
|
|
1003
|
+
List maven distributions
|
|
1004
|
+
|
|
1005
|
+
ViewSet for Maven Distributions.
|
|
1006
|
+
|
|
1007
|
+
### Example
|
|
1008
|
+
|
|
1009
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
1010
|
+
* Basic Authentication (basicAuth):
|
|
1011
|
+
* Api Key Authentication (cookieAuth):
|
|
1012
|
+
|
|
1013
|
+
```python
|
|
1014
|
+
import pulpcore.client.pulp_maven
|
|
1015
|
+
from pulpcore.client.pulp_maven.models.paginatedmaven_maven_distribution_response_list import PaginatedmavenMavenDistributionResponseList
|
|
1016
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
1017
|
+
from pprint import pprint
|
|
1018
|
+
|
|
1019
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
1020
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1021
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1022
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
1023
|
+
)
|
|
1024
|
+
|
|
1025
|
+
# The client must configure the authentication and authorization parameters
|
|
1026
|
+
# in accordance with the API server security policy.
|
|
1027
|
+
# Examples for each auth method are provided below, use the example that
|
|
1028
|
+
# satisfies your auth use case.
|
|
1029
|
+
|
|
1030
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
1031
|
+
|
|
1032
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1033
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1034
|
+
username = os.environ["USERNAME"],
|
|
1035
|
+
password = os.environ["PASSWORD"]
|
|
1036
|
+
)
|
|
1037
|
+
|
|
1038
|
+
# Configure API key authorization: cookieAuth
|
|
1039
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
1040
|
+
|
|
1041
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1042
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
1043
|
+
|
|
1044
|
+
# Enter a context with an instance of the API client
|
|
1045
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
1046
|
+
# Create an instance of the API class
|
|
1047
|
+
api_instance = pulpcore.client.pulp_maven.DistributionsMavenApi(api_client)
|
|
1048
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
1049
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
1050
|
+
base_path = 'base_path_example' # str | Filter results where base_path matches value (optional)
|
|
1051
|
+
base_path__contains = 'base_path__contains_example' # str | Filter results where base_path contains value (optional)
|
|
1052
|
+
base_path__icontains = 'base_path__icontains_example' # str | Filter results where base_path contains value (optional)
|
|
1053
|
+
base_path__in = ['base_path__in_example'] # List[str] | Filter results where base_path is in a comma-separated list of values (optional)
|
|
1054
|
+
checkpoint = True # bool | Filter results where checkpoint matches value (optional)
|
|
1055
|
+
limit = 56 # int | Number of results to return per page. (optional)
|
|
1056
|
+
name = 'name_example' # str | Filter results where name matches value (optional)
|
|
1057
|
+
name__contains = 'name__contains_example' # str | Filter results where name contains value (optional)
|
|
1058
|
+
name__icontains = 'name__icontains_example' # str | Filter results where name contains value (optional)
|
|
1059
|
+
name__iexact = 'name__iexact_example' # str | Filter results where name matches value (optional)
|
|
1060
|
+
name__in = ['name__in_example'] # List[str] | Filter results where name is in a comma-separated list of values (optional)
|
|
1061
|
+
name__iregex = 'name__iregex_example' # str | Filter results where name matches regex value (optional)
|
|
1062
|
+
name__istartswith = 'name__istartswith_example' # str | Filter results where name starts with value (optional)
|
|
1063
|
+
name__regex = 'name__regex_example' # str | Filter results where name matches regex value (optional)
|
|
1064
|
+
name__startswith = 'name__startswith_example' # str | Filter results where name starts with value (optional)
|
|
1065
|
+
offset = 56 # int | The initial index from which to return the results. (optional)
|
|
1066
|
+
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
|
|
1067
|
+
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
1068
|
+
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
1069
|
+
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
1070
|
+
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
|
|
1071
|
+
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
|
|
1072
|
+
repository = 'repository_example' # str | Filter results where repository matches value (optional)
|
|
1073
|
+
repository__in = ['repository__in_example'] # List[str] | Filter results where repository is in a comma-separated list of values (optional)
|
|
1074
|
+
with_content = 'with_content_example' # str | Filter distributions based on the content served by them (optional)
|
|
1075
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
1076
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
1077
|
+
|
|
1078
|
+
try:
|
|
1079
|
+
# List maven distributions
|
|
1080
|
+
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, base_path=base_path, base_path__contains=base_path__contains, base_path__icontains=base_path__icontains, base_path__in=base_path__in, checkpoint=checkpoint, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository=repository, repository__in=repository__in, with_content=with_content, fields=fields, exclude_fields=exclude_fields)
|
|
1081
|
+
print("The response of DistributionsMavenApi->list:\n")
|
|
1082
|
+
pprint(api_response)
|
|
1083
|
+
except Exception as e:
|
|
1084
|
+
print("Exception when calling DistributionsMavenApi->list: %s\n" % e)
|
|
1085
|
+
```
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
### Parameters
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
Name | Type | Description | Notes
|
|
1093
|
+
------------- | ------------- | ------------- | -------------
|
|
1094
|
+
**pulp_domain** | **str**| |
|
|
1095
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
1096
|
+
**base_path** | **str**| Filter results where base_path matches value | [optional]
|
|
1097
|
+
**base_path__contains** | **str**| Filter results where base_path contains value | [optional]
|
|
1098
|
+
**base_path__icontains** | **str**| Filter results where base_path contains value | [optional]
|
|
1099
|
+
**base_path__in** | [**List[str]**](str.md)| Filter results where base_path is in a comma-separated list of values | [optional]
|
|
1100
|
+
**checkpoint** | **bool**| Filter results where checkpoint matches value | [optional]
|
|
1101
|
+
**limit** | **int**| Number of results to return per page. | [optional]
|
|
1102
|
+
**name** | **str**| Filter results where name matches value | [optional]
|
|
1103
|
+
**name__contains** | **str**| Filter results where name contains value | [optional]
|
|
1104
|
+
**name__icontains** | **str**| Filter results where name contains value | [optional]
|
|
1105
|
+
**name__iexact** | **str**| Filter results where name matches value | [optional]
|
|
1106
|
+
**name__in** | [**List[str]**](str.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
1107
|
+
**name__iregex** | **str**| Filter results where name matches regex value | [optional]
|
|
1108
|
+
**name__istartswith** | **str**| Filter results where name starts with value | [optional]
|
|
1109
|
+
**name__regex** | **str**| Filter results where name matches regex value | [optional]
|
|
1110
|
+
**name__startswith** | **str**| Filter results where name starts with value | [optional]
|
|
1111
|
+
**offset** | **int**| The initial index from which to return the results. | [optional]
|
|
1112
|
+
**ordering** | [**List[str]**](str.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
|
1113
|
+
**prn__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
1114
|
+
**pulp_href__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
1115
|
+
**pulp_id__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
1116
|
+
**pulp_label_select** | **str**| Filter labels by search string | [optional]
|
|
1117
|
+
**q** | **str**| Filter results by using NOT, AND and OR operations on other filters | [optional]
|
|
1118
|
+
**repository** | **str**| Filter results where repository matches value | [optional]
|
|
1119
|
+
**repository__in** | [**List[str]**](str.md)| Filter results where repository is in a comma-separated list of values | [optional]
|
|
1120
|
+
**with_content** | **str**| Filter distributions based on the content served by them | [optional]
|
|
1121
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
1122
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
1123
|
+
|
|
1124
|
+
### Return type
|
|
1125
|
+
|
|
1126
|
+
[**PaginatedmavenMavenDistributionResponseList**](PaginatedmavenMavenDistributionResponseList.md)
|
|
1127
|
+
|
|
1128
|
+
### Authorization
|
|
1129
|
+
|
|
1130
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1131
|
+
|
|
1132
|
+
### HTTP request headers
|
|
1133
|
+
|
|
1134
|
+
- **Content-Type**: Not defined
|
|
1135
|
+
- **Accept**: application/json
|
|
1136
|
+
|
|
1137
|
+
### HTTP response details
|
|
1138
|
+
|
|
1139
|
+
| Status code | Description | Response headers |
|
|
1140
|
+
|-------------|-------------|------------------|
|
|
1141
|
+
**200** | | - |
|
|
1142
|
+
|
|
1143
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1144
|
+
|
|
1145
|
+
# **partial_update**
|
|
1146
|
+
> MavenMavenDistributionResponse partial_update(maven_maven_distribution_href, patchedmaven_maven_distribution, x_task_diagnostics=x_task_diagnostics)
|
|
1147
|
+
|
|
1148
|
+
Update a maven distribution
|
|
1149
|
+
|
|
1150
|
+
Update the entity partially and trigger an asynchronous task if necessary
|
|
1151
|
+
|
|
1152
|
+
### Example
|
|
1153
|
+
|
|
1154
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
1155
|
+
* Basic Authentication (basicAuth):
|
|
1156
|
+
* Api Key Authentication (cookieAuth):
|
|
1157
|
+
|
|
1158
|
+
```python
|
|
1159
|
+
import pulpcore.client.pulp_maven
|
|
1160
|
+
from pulpcore.client.pulp_maven.models.maven_maven_distribution_response import MavenMavenDistributionResponse
|
|
1161
|
+
from pulpcore.client.pulp_maven.models.patchedmaven_maven_distribution import PatchedmavenMavenDistribution
|
|
1162
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
1163
|
+
from pprint import pprint
|
|
1164
|
+
|
|
1165
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
1166
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1167
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1168
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
1169
|
+
)
|
|
1170
|
+
|
|
1171
|
+
# The client must configure the authentication and authorization parameters
|
|
1172
|
+
# in accordance with the API server security policy.
|
|
1173
|
+
# Examples for each auth method are provided below, use the example that
|
|
1174
|
+
# satisfies your auth use case.
|
|
1175
|
+
|
|
1176
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
1177
|
+
|
|
1178
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1179
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1180
|
+
username = os.environ["USERNAME"],
|
|
1181
|
+
password = os.environ["PASSWORD"]
|
|
1182
|
+
)
|
|
1183
|
+
|
|
1184
|
+
# Configure API key authorization: cookieAuth
|
|
1185
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
1186
|
+
|
|
1187
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1188
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
1189
|
+
|
|
1190
|
+
# Enter a context with an instance of the API client
|
|
1191
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
1192
|
+
# Create an instance of the API class
|
|
1193
|
+
api_instance = pulpcore.client.pulp_maven.DistributionsMavenApi(api_client)
|
|
1194
|
+
maven_maven_distribution_href = 'maven_maven_distribution_href_example' # str |
|
|
1195
|
+
patchedmaven_maven_distribution = pulpcore.client.pulp_maven.PatchedmavenMavenDistribution() # PatchedmavenMavenDistribution |
|
|
1196
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
1197
|
+
|
|
1198
|
+
try:
|
|
1199
|
+
# Update a maven distribution
|
|
1200
|
+
api_response = api_instance.partial_update(maven_maven_distribution_href, patchedmaven_maven_distribution, x_task_diagnostics=x_task_diagnostics)
|
|
1201
|
+
print("The response of DistributionsMavenApi->partial_update:\n")
|
|
1202
|
+
pprint(api_response)
|
|
1203
|
+
except Exception as e:
|
|
1204
|
+
print("Exception when calling DistributionsMavenApi->partial_update: %s\n" % e)
|
|
1205
|
+
```
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
### Parameters
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
Name | Type | Description | Notes
|
|
1213
|
+
------------- | ------------- | ------------- | -------------
|
|
1214
|
+
**maven_maven_distribution_href** | **str**| |
|
|
1215
|
+
**patchedmaven_maven_distribution** | [**PatchedmavenMavenDistribution**](PatchedmavenMavenDistribution.md)| |
|
|
1216
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
1217
|
+
|
|
1218
|
+
### Return type
|
|
1219
|
+
|
|
1220
|
+
[**MavenMavenDistributionResponse**](MavenMavenDistributionResponse.md)
|
|
1221
|
+
|
|
1222
|
+
### Authorization
|
|
1223
|
+
|
|
1224
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1225
|
+
|
|
1226
|
+
### HTTP request headers
|
|
1227
|
+
|
|
1228
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
1229
|
+
- **Accept**: application/json
|
|
1230
|
+
|
|
1231
|
+
### HTTP response details
|
|
1232
|
+
|
|
1233
|
+
| Status code | Description | Response headers |
|
|
1234
|
+
|-------------|-------------|------------------|
|
|
1235
|
+
**200** | | - |
|
|
1236
|
+
**202** | | - |
|
|
1237
|
+
|
|
1238
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1239
|
+
|
|
1240
|
+
# **read**
|
|
1241
|
+
> MavenMavenDistributionResponse read(maven_maven_distribution_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
1242
|
+
|
|
1243
|
+
Inspect a maven distribution
|
|
1244
|
+
|
|
1245
|
+
ViewSet for Maven Distributions.
|
|
1246
|
+
|
|
1247
|
+
### Example
|
|
1248
|
+
|
|
1249
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
1250
|
+
* Basic Authentication (basicAuth):
|
|
1251
|
+
* Api Key Authentication (cookieAuth):
|
|
1252
|
+
|
|
1253
|
+
```python
|
|
1254
|
+
import pulpcore.client.pulp_maven
|
|
1255
|
+
from pulpcore.client.pulp_maven.models.maven_maven_distribution_response import MavenMavenDistributionResponse
|
|
1256
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
1257
|
+
from pprint import pprint
|
|
1258
|
+
|
|
1259
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
1260
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1261
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1262
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
1263
|
+
)
|
|
1264
|
+
|
|
1265
|
+
# The client must configure the authentication and authorization parameters
|
|
1266
|
+
# in accordance with the API server security policy.
|
|
1267
|
+
# Examples for each auth method are provided below, use the example that
|
|
1268
|
+
# satisfies your auth use case.
|
|
1269
|
+
|
|
1270
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
1271
|
+
|
|
1272
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1273
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1274
|
+
username = os.environ["USERNAME"],
|
|
1275
|
+
password = os.environ["PASSWORD"]
|
|
1276
|
+
)
|
|
1277
|
+
|
|
1278
|
+
# Configure API key authorization: cookieAuth
|
|
1279
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
1280
|
+
|
|
1281
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1282
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
1283
|
+
|
|
1284
|
+
# Enter a context with an instance of the API client
|
|
1285
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
1286
|
+
# Create an instance of the API class
|
|
1287
|
+
api_instance = pulpcore.client.pulp_maven.DistributionsMavenApi(api_client)
|
|
1288
|
+
maven_maven_distribution_href = 'maven_maven_distribution_href_example' # str |
|
|
1289
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
1290
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
1291
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
1292
|
+
|
|
1293
|
+
try:
|
|
1294
|
+
# Inspect a maven distribution
|
|
1295
|
+
api_response = api_instance.read(maven_maven_distribution_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
1296
|
+
print("The response of DistributionsMavenApi->read:\n")
|
|
1297
|
+
pprint(api_response)
|
|
1298
|
+
except Exception as e:
|
|
1299
|
+
print("Exception when calling DistributionsMavenApi->read: %s\n" % e)
|
|
1300
|
+
```
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
### Parameters
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
Name | Type | Description | Notes
|
|
1308
|
+
------------- | ------------- | ------------- | -------------
|
|
1309
|
+
**maven_maven_distribution_href** | **str**| |
|
|
1310
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
1311
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
1312
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
1313
|
+
|
|
1314
|
+
### Return type
|
|
1315
|
+
|
|
1316
|
+
[**MavenMavenDistributionResponse**](MavenMavenDistributionResponse.md)
|
|
1317
|
+
|
|
1318
|
+
### Authorization
|
|
1319
|
+
|
|
1320
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1321
|
+
|
|
1322
|
+
### HTTP request headers
|
|
1323
|
+
|
|
1324
|
+
- **Content-Type**: Not defined
|
|
1325
|
+
- **Accept**: application/json
|
|
1326
|
+
|
|
1327
|
+
### HTTP response details
|
|
1328
|
+
|
|
1329
|
+
| Status code | Description | Response headers |
|
|
1330
|
+
|-------------|-------------|------------------|
|
|
1331
|
+
**200** | | - |
|
|
1332
|
+
|
|
1333
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1334
|
+
|
|
1335
|
+
# **set_label**
|
|
1336
|
+
> SetLabelResponse set_label(maven_maven_distribution_href, set_label, x_task_diagnostics=x_task_diagnostics)
|
|
1337
|
+
|
|
1338
|
+
Set a label
|
|
1339
|
+
|
|
1340
|
+
Set a single pulp_label on the object to a specific value or null.
|
|
1341
|
+
|
|
1342
|
+
### Example
|
|
1343
|
+
|
|
1344
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
1345
|
+
* Basic Authentication (basicAuth):
|
|
1346
|
+
* Api Key Authentication (cookieAuth):
|
|
1347
|
+
|
|
1348
|
+
```python
|
|
1349
|
+
import pulpcore.client.pulp_maven
|
|
1350
|
+
from pulpcore.client.pulp_maven.models.set_label import SetLabel
|
|
1351
|
+
from pulpcore.client.pulp_maven.models.set_label_response import SetLabelResponse
|
|
1352
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
1353
|
+
from pprint import pprint
|
|
1354
|
+
|
|
1355
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
1356
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1357
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1358
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
1359
|
+
)
|
|
1360
|
+
|
|
1361
|
+
# The client must configure the authentication and authorization parameters
|
|
1362
|
+
# in accordance with the API server security policy.
|
|
1363
|
+
# Examples for each auth method are provided below, use the example that
|
|
1364
|
+
# satisfies your auth use case.
|
|
1365
|
+
|
|
1366
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
1367
|
+
|
|
1368
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1369
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1370
|
+
username = os.environ["USERNAME"],
|
|
1371
|
+
password = os.environ["PASSWORD"]
|
|
1372
|
+
)
|
|
1373
|
+
|
|
1374
|
+
# Configure API key authorization: cookieAuth
|
|
1375
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
1376
|
+
|
|
1377
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1378
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
1379
|
+
|
|
1380
|
+
# Enter a context with an instance of the API client
|
|
1381
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
1382
|
+
# Create an instance of the API class
|
|
1383
|
+
api_instance = pulpcore.client.pulp_maven.DistributionsMavenApi(api_client)
|
|
1384
|
+
maven_maven_distribution_href = 'maven_maven_distribution_href_example' # str |
|
|
1385
|
+
set_label = pulpcore.client.pulp_maven.SetLabel() # SetLabel |
|
|
1386
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
1387
|
+
|
|
1388
|
+
try:
|
|
1389
|
+
# Set a label
|
|
1390
|
+
api_response = api_instance.set_label(maven_maven_distribution_href, set_label, x_task_diagnostics=x_task_diagnostics)
|
|
1391
|
+
print("The response of DistributionsMavenApi->set_label:\n")
|
|
1392
|
+
pprint(api_response)
|
|
1393
|
+
except Exception as e:
|
|
1394
|
+
print("Exception when calling DistributionsMavenApi->set_label: %s\n" % e)
|
|
1395
|
+
```
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
### Parameters
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
Name | Type | Description | Notes
|
|
1403
|
+
------------- | ------------- | ------------- | -------------
|
|
1404
|
+
**maven_maven_distribution_href** | **str**| |
|
|
1405
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
|
1406
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
1407
|
+
|
|
1408
|
+
### Return type
|
|
1409
|
+
|
|
1410
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
|
1411
|
+
|
|
1412
|
+
### Authorization
|
|
1413
|
+
|
|
1414
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1415
|
+
|
|
1416
|
+
### HTTP request headers
|
|
1417
|
+
|
|
1418
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
1419
|
+
- **Accept**: application/json
|
|
1420
|
+
|
|
1421
|
+
### HTTP response details
|
|
1422
|
+
|
|
1423
|
+
| Status code | Description | Response headers |
|
|
1424
|
+
|-------------|-------------|------------------|
|
|
1425
|
+
**200** | | - |
|
|
1426
|
+
|
|
1427
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1428
|
+
|
|
1429
|
+
# **unset_label**
|
|
1430
|
+
> UnsetLabelResponse unset_label(maven_maven_distribution_href, unset_label, x_task_diagnostics=x_task_diagnostics)
|
|
1431
|
+
|
|
1432
|
+
Unset a label
|
|
1433
|
+
|
|
1434
|
+
Unset a single pulp_label on the object.
|
|
1435
|
+
|
|
1436
|
+
### Example
|
|
1437
|
+
|
|
1438
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
1439
|
+
* Basic Authentication (basicAuth):
|
|
1440
|
+
* Api Key Authentication (cookieAuth):
|
|
1441
|
+
|
|
1442
|
+
```python
|
|
1443
|
+
import pulpcore.client.pulp_maven
|
|
1444
|
+
from pulpcore.client.pulp_maven.models.unset_label import UnsetLabel
|
|
1445
|
+
from pulpcore.client.pulp_maven.models.unset_label_response import UnsetLabelResponse
|
|
1446
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
1447
|
+
from pprint import pprint
|
|
1448
|
+
|
|
1449
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
1450
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1451
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1452
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
1453
|
+
)
|
|
1454
|
+
|
|
1455
|
+
# The client must configure the authentication and authorization parameters
|
|
1456
|
+
# in accordance with the API server security policy.
|
|
1457
|
+
# Examples for each auth method are provided below, use the example that
|
|
1458
|
+
# satisfies your auth use case.
|
|
1459
|
+
|
|
1460
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
1461
|
+
|
|
1462
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1463
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1464
|
+
username = os.environ["USERNAME"],
|
|
1465
|
+
password = os.environ["PASSWORD"]
|
|
1466
|
+
)
|
|
1467
|
+
|
|
1468
|
+
# Configure API key authorization: cookieAuth
|
|
1469
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
1470
|
+
|
|
1471
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1472
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
1473
|
+
|
|
1474
|
+
# Enter a context with an instance of the API client
|
|
1475
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
1476
|
+
# Create an instance of the API class
|
|
1477
|
+
api_instance = pulpcore.client.pulp_maven.DistributionsMavenApi(api_client)
|
|
1478
|
+
maven_maven_distribution_href = 'maven_maven_distribution_href_example' # str |
|
|
1479
|
+
unset_label = pulpcore.client.pulp_maven.UnsetLabel() # UnsetLabel |
|
|
1480
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
1481
|
+
|
|
1482
|
+
try:
|
|
1483
|
+
# Unset a label
|
|
1484
|
+
api_response = api_instance.unset_label(maven_maven_distribution_href, unset_label, x_task_diagnostics=x_task_diagnostics)
|
|
1485
|
+
print("The response of DistributionsMavenApi->unset_label:\n")
|
|
1486
|
+
pprint(api_response)
|
|
1487
|
+
except Exception as e:
|
|
1488
|
+
print("Exception when calling DistributionsMavenApi->unset_label: %s\n" % e)
|
|
1489
|
+
```
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
### Parameters
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
Name | Type | Description | Notes
|
|
1497
|
+
------------- | ------------- | ------------- | -------------
|
|
1498
|
+
**maven_maven_distribution_href** | **str**| |
|
|
1499
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
|
1500
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
1501
|
+
|
|
1502
|
+
### Return type
|
|
1503
|
+
|
|
1504
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
|
1505
|
+
|
|
1506
|
+
### Authorization
|
|
1507
|
+
|
|
1508
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1509
|
+
|
|
1510
|
+
### HTTP request headers
|
|
1511
|
+
|
|
1512
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
1513
|
+
- **Accept**: application/json
|
|
1514
|
+
|
|
1515
|
+
### HTTP response details
|
|
1516
|
+
|
|
1517
|
+
| Status code | Description | Response headers |
|
|
1518
|
+
|-------------|-------------|------------------|
|
|
1519
|
+
**200** | | - |
|
|
1520
|
+
|
|
1521
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1522
|
+
|
|
1523
|
+
# **update**
|
|
1524
|
+
> MavenMavenDistributionResponse update(maven_maven_distribution_href, maven_maven_distribution, x_task_diagnostics=x_task_diagnostics)
|
|
1525
|
+
|
|
1526
|
+
Update a maven distribution
|
|
1527
|
+
|
|
1528
|
+
Update the entity and trigger an asynchronous task if necessary
|
|
1529
|
+
|
|
1530
|
+
### Example
|
|
1531
|
+
|
|
1532
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
1533
|
+
* Basic Authentication (basicAuth):
|
|
1534
|
+
* Api Key Authentication (cookieAuth):
|
|
1535
|
+
|
|
1536
|
+
```python
|
|
1537
|
+
import pulpcore.client.pulp_maven
|
|
1538
|
+
from pulpcore.client.pulp_maven.models.maven_maven_distribution import MavenMavenDistribution
|
|
1539
|
+
from pulpcore.client.pulp_maven.models.maven_maven_distribution_response import MavenMavenDistributionResponse
|
|
1540
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
1541
|
+
from pprint import pprint
|
|
1542
|
+
|
|
1543
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
1544
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1545
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1546
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
1547
|
+
)
|
|
1548
|
+
|
|
1549
|
+
# The client must configure the authentication and authorization parameters
|
|
1550
|
+
# in accordance with the API server security policy.
|
|
1551
|
+
# Examples for each auth method are provided below, use the example that
|
|
1552
|
+
# satisfies your auth use case.
|
|
1553
|
+
|
|
1554
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
1555
|
+
|
|
1556
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1557
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
1558
|
+
username = os.environ["USERNAME"],
|
|
1559
|
+
password = os.environ["PASSWORD"]
|
|
1560
|
+
)
|
|
1561
|
+
|
|
1562
|
+
# Configure API key authorization: cookieAuth
|
|
1563
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
1564
|
+
|
|
1565
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1566
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
1567
|
+
|
|
1568
|
+
# Enter a context with an instance of the API client
|
|
1569
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
1570
|
+
# Create an instance of the API class
|
|
1571
|
+
api_instance = pulpcore.client.pulp_maven.DistributionsMavenApi(api_client)
|
|
1572
|
+
maven_maven_distribution_href = 'maven_maven_distribution_href_example' # str |
|
|
1573
|
+
maven_maven_distribution = pulpcore.client.pulp_maven.MavenMavenDistribution() # MavenMavenDistribution |
|
|
1574
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
1575
|
+
|
|
1576
|
+
try:
|
|
1577
|
+
# Update a maven distribution
|
|
1578
|
+
api_response = api_instance.update(maven_maven_distribution_href, maven_maven_distribution, x_task_diagnostics=x_task_diagnostics)
|
|
1579
|
+
print("The response of DistributionsMavenApi->update:\n")
|
|
1580
|
+
pprint(api_response)
|
|
1581
|
+
except Exception as e:
|
|
1582
|
+
print("Exception when calling DistributionsMavenApi->update: %s\n" % e)
|
|
1583
|
+
```
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
### Parameters
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
Name | Type | Description | Notes
|
|
1591
|
+
------------- | ------------- | ------------- | -------------
|
|
1592
|
+
**maven_maven_distribution_href** | **str**| |
|
|
1593
|
+
**maven_maven_distribution** | [**MavenMavenDistribution**](MavenMavenDistribution.md)| |
|
|
1594
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
1595
|
+
|
|
1596
|
+
### Return type
|
|
1597
|
+
|
|
1598
|
+
[**MavenMavenDistributionResponse**](MavenMavenDistributionResponse.md)
|
|
1599
|
+
|
|
1600
|
+
### Authorization
|
|
1601
|
+
|
|
1602
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1603
|
+
|
|
1604
|
+
### HTTP request headers
|
|
1605
|
+
|
|
1606
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
1607
|
+
- **Accept**: application/json
|
|
1608
|
+
|
|
1609
|
+
### HTTP response details
|
|
1610
|
+
|
|
1611
|
+
| Status code | Description | Response headers |
|
|
1612
|
+
|-------------|-------------|------------------|
|
|
1613
|
+
**200** | | - |
|
|
1614
|
+
**202** | | - |
|
|
1615
|
+
|
|
1616
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1617
|
+
|
|
1618
|
+
# MavenMavenArtifact
|
|
1619
|
+
|
|
1620
|
+
A Serializer for MavenArtifact.
|
|
1621
|
+
|
|
1622
|
+
## Properties
|
|
1623
|
+
|
|
1624
|
+
Name | Type | Description | Notes
|
|
1625
|
+
------------ | ------------- | ------------- | -------------
|
|
1626
|
+
**repository** | **str** | A URI of a repository the new content unit should be associated with. | [optional]
|
|
1627
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional]
|
|
1628
|
+
**artifact** | **str** | Artifact file representing the physical content |
|
|
1629
|
+
**relative_path** | **str** | Path where the artifact is located relative to distributions base_path |
|
|
1630
|
+
|
|
1631
|
+
## Example
|
|
1632
|
+
|
|
1633
|
+
```python
|
|
1634
|
+
from pulpcore.client.pulp_maven.models.maven_maven_artifact import MavenMavenArtifact
|
|
1635
|
+
|
|
1636
|
+
# TODO update the JSON string below
|
|
1637
|
+
json = "{}"
|
|
1638
|
+
# create an instance of MavenMavenArtifact from a JSON string
|
|
1639
|
+
maven_maven_artifact_instance = MavenMavenArtifact.from_json(json)
|
|
1640
|
+
# print the JSON string representation of the object
|
|
1641
|
+
print(MavenMavenArtifact.to_json())
|
|
1642
|
+
|
|
1643
|
+
# convert the object into a dict
|
|
1644
|
+
maven_maven_artifact_dict = maven_maven_artifact_instance.to_dict()
|
|
1645
|
+
# create an instance of MavenMavenArtifact from a dict
|
|
1646
|
+
maven_maven_artifact_from_dict = MavenMavenArtifact.from_dict(maven_maven_artifact_dict)
|
|
1647
|
+
```
|
|
1648
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
# MavenMavenArtifactResponse
|
|
1652
|
+
|
|
1653
|
+
A Serializer for MavenArtifact.
|
|
1654
|
+
|
|
1655
|
+
## Properties
|
|
1656
|
+
|
|
1657
|
+
Name | Type | Description | Notes
|
|
1658
|
+
------------ | ------------- | ------------- | -------------
|
|
1659
|
+
**pulp_href** | **str** | | [optional] [readonly]
|
|
1660
|
+
**prn** | **str** | The Pulp Resource Name (PRN). | [optional] [readonly]
|
|
1661
|
+
**pulp_created** | **datetime** | Timestamp of creation. | [optional] [readonly]
|
|
1662
|
+
**pulp_last_updated** | **datetime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
|
1663
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional]
|
|
1664
|
+
**vuln_report** | **str** | | [optional] [readonly]
|
|
1665
|
+
**artifact** | **str** | Artifact file representing the physical content |
|
|
1666
|
+
**group_id** | **str** | Group Id of the artifact's package. | [optional] [readonly]
|
|
1667
|
+
**artifact_id** | **str** | Artifact Id of the artifact's package. | [optional] [readonly]
|
|
1668
|
+
**version** | **str** | Version of the artifact's package. | [optional] [readonly]
|
|
1669
|
+
**filename** | **str** | Filename of the artifact. | [optional] [readonly]
|
|
1670
|
+
|
|
1671
|
+
## Example
|
|
1672
|
+
|
|
1673
|
+
```python
|
|
1674
|
+
from pulpcore.client.pulp_maven.models.maven_maven_artifact_response import MavenMavenArtifactResponse
|
|
1675
|
+
|
|
1676
|
+
# TODO update the JSON string below
|
|
1677
|
+
json = "{}"
|
|
1678
|
+
# create an instance of MavenMavenArtifactResponse from a JSON string
|
|
1679
|
+
maven_maven_artifact_response_instance = MavenMavenArtifactResponse.from_json(json)
|
|
1680
|
+
# print the JSON string representation of the object
|
|
1681
|
+
print(MavenMavenArtifactResponse.to_json())
|
|
1682
|
+
|
|
1683
|
+
# convert the object into a dict
|
|
1684
|
+
maven_maven_artifact_response_dict = maven_maven_artifact_response_instance.to_dict()
|
|
1685
|
+
# create an instance of MavenMavenArtifactResponse from a dict
|
|
1686
|
+
maven_maven_artifact_response_from_dict = MavenMavenArtifactResponse.from_dict(maven_maven_artifact_response_dict)
|
|
1687
|
+
```
|
|
1688
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
# MavenMavenDistribution
|
|
1692
|
+
|
|
1693
|
+
Serializer for Maven Distributions.
|
|
1694
|
+
|
|
1695
|
+
## Properties
|
|
1696
|
+
|
|
1697
|
+
Name | Type | Description | Notes
|
|
1698
|
+
------------ | ------------- | ------------- | -------------
|
|
1699
|
+
**base_path** | **str** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
|
1700
|
+
**content_guard** | **str** | An optional content-guard. | [optional]
|
|
1701
|
+
**hidden** | **bool** | Whether this distribution should be shown in the content app. | [optional] [default to False]
|
|
1702
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | | [optional]
|
|
1703
|
+
**name** | **str** | A unique name. Ex, `rawhide` and `stable`. |
|
|
1704
|
+
**repository** | **str** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
1705
|
+
**remote** | **str** | Remote that can be used to fetch content when using pull-through caching. | [optional]
|
|
1706
|
+
|
|
1707
|
+
## Example
|
|
1708
|
+
|
|
1709
|
+
```python
|
|
1710
|
+
from pulpcore.client.pulp_maven.models.maven_maven_distribution import MavenMavenDistribution
|
|
1711
|
+
|
|
1712
|
+
# TODO update the JSON string below
|
|
1713
|
+
json = "{}"
|
|
1714
|
+
# create an instance of MavenMavenDistribution from a JSON string
|
|
1715
|
+
maven_maven_distribution_instance = MavenMavenDistribution.from_json(json)
|
|
1716
|
+
# print the JSON string representation of the object
|
|
1717
|
+
print(MavenMavenDistribution.to_json())
|
|
1718
|
+
|
|
1719
|
+
# convert the object into a dict
|
|
1720
|
+
maven_maven_distribution_dict = maven_maven_distribution_instance.to_dict()
|
|
1721
|
+
# create an instance of MavenMavenDistribution from a dict
|
|
1722
|
+
maven_maven_distribution_from_dict = MavenMavenDistribution.from_dict(maven_maven_distribution_dict)
|
|
1723
|
+
```
|
|
1724
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
# MavenMavenDistributionResponse
|
|
1728
|
+
|
|
1729
|
+
Serializer for Maven Distributions.
|
|
1730
|
+
|
|
1731
|
+
## Properties
|
|
1732
|
+
|
|
1733
|
+
Name | Type | Description | Notes
|
|
1734
|
+
------------ | ------------- | ------------- | -------------
|
|
1735
|
+
**pulp_href** | **str** | | [optional] [readonly]
|
|
1736
|
+
**prn** | **str** | The Pulp Resource Name (PRN). | [optional] [readonly]
|
|
1737
|
+
**pulp_created** | **datetime** | Timestamp of creation. | [optional] [readonly]
|
|
1738
|
+
**pulp_last_updated** | **datetime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
|
1739
|
+
**base_path** | **str** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
|
1740
|
+
**base_url** | **str** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly]
|
|
1741
|
+
**content_guard** | **str** | An optional content-guard. | [optional]
|
|
1742
|
+
**no_content_change_since** | **str** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional] [readonly]
|
|
1743
|
+
**hidden** | **bool** | Whether this distribution should be shown in the content app. | [optional] [default to False]
|
|
1744
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | | [optional]
|
|
1745
|
+
**name** | **str** | A unique name. Ex, `rawhide` and `stable`. |
|
|
1746
|
+
**repository** | **str** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
1747
|
+
**remote** | **str** | Remote that can be used to fetch content when using pull-through caching. | [optional]
|
|
1748
|
+
|
|
1749
|
+
## Example
|
|
1750
|
+
|
|
1751
|
+
```python
|
|
1752
|
+
from pulpcore.client.pulp_maven.models.maven_maven_distribution_response import MavenMavenDistributionResponse
|
|
1753
|
+
|
|
1754
|
+
# TODO update the JSON string below
|
|
1755
|
+
json = "{}"
|
|
1756
|
+
# create an instance of MavenMavenDistributionResponse from a JSON string
|
|
1757
|
+
maven_maven_distribution_response_instance = MavenMavenDistributionResponse.from_json(json)
|
|
1758
|
+
# print the JSON string representation of the object
|
|
1759
|
+
print(MavenMavenDistributionResponse.to_json())
|
|
1760
|
+
|
|
1761
|
+
# convert the object into a dict
|
|
1762
|
+
maven_maven_distribution_response_dict = maven_maven_distribution_response_instance.to_dict()
|
|
1763
|
+
# create an instance of MavenMavenDistributionResponse from a dict
|
|
1764
|
+
maven_maven_distribution_response_from_dict = MavenMavenDistributionResponse.from_dict(maven_maven_distribution_response_dict)
|
|
1765
|
+
```
|
|
1766
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
# MavenMavenRemote
|
|
1770
|
+
|
|
1771
|
+
A Serializer for MavenRemote. Add any new fields if defined on MavenRemote. Similar to the example above, in MavenArtifactSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RemoteSerializer.Meta.validators + [myValidator1, myValidator2]
|
|
1772
|
+
|
|
1773
|
+
## Properties
|
|
1774
|
+
|
|
1775
|
+
Name | Type | Description | Notes
|
|
1776
|
+
------------ | ------------- | ------------- | -------------
|
|
1777
|
+
**name** | **str** | A unique name for this remote. |
|
|
1778
|
+
**url** | **str** | The URL of an external content source. |
|
|
1779
|
+
**ca_cert** | **str** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
1780
|
+
**client_cert** | **str** | A PEM encoded client certificate used for authentication. | [optional]
|
|
1781
|
+
**client_key** | **str** | A PEM encoded private key used for authentication. | [optional]
|
|
1782
|
+
**tls_validation** | **bool** | If True, TLS peer validation must be performed. | [optional]
|
|
1783
|
+
**proxy_url** | **str** | The proxy URL. Format: scheme://host:port | [optional]
|
|
1784
|
+
**proxy_username** | **str** | The username to authenticte to the proxy. | [optional]
|
|
1785
|
+
**proxy_password** | **str** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
1786
|
+
**username** | **str** | The username to be used for authentication when syncing. | [optional]
|
|
1787
|
+
**password** | **str** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
1788
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | | [optional]
|
|
1789
|
+
**download_concurrency** | **int** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
1790
|
+
**max_retries** | **int** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
1791
|
+
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now. | [optional]
|
|
1792
|
+
**total_timeout** | **float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
1793
|
+
**connect_timeout** | **float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
1794
|
+
**sock_connect_timeout** | **float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
1795
|
+
**sock_read_timeout** | **float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
1796
|
+
**headers** | **List[object]** | Headers for aiohttp.Clientsession | [optional]
|
|
1797
|
+
**rate_limit** | **int** | Limits requests per second for each concurrent downloader | [optional]
|
|
1798
|
+
|
|
1799
|
+
## Example
|
|
1800
|
+
|
|
1801
|
+
```python
|
|
1802
|
+
from pulpcore.client.pulp_maven.models.maven_maven_remote import MavenMavenRemote
|
|
1803
|
+
|
|
1804
|
+
# TODO update the JSON string below
|
|
1805
|
+
json = "{}"
|
|
1806
|
+
# create an instance of MavenMavenRemote from a JSON string
|
|
1807
|
+
maven_maven_remote_instance = MavenMavenRemote.from_json(json)
|
|
1808
|
+
# print the JSON string representation of the object
|
|
1809
|
+
print(MavenMavenRemote.to_json())
|
|
1810
|
+
|
|
1811
|
+
# convert the object into a dict
|
|
1812
|
+
maven_maven_remote_dict = maven_maven_remote_instance.to_dict()
|
|
1813
|
+
# create an instance of MavenMavenRemote from a dict
|
|
1814
|
+
maven_maven_remote_from_dict = MavenMavenRemote.from_dict(maven_maven_remote_dict)
|
|
1815
|
+
```
|
|
1816
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
# MavenMavenRemoteResponseHiddenFieldsInner
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
## Properties
|
|
1823
|
+
|
|
1824
|
+
Name | Type | Description | Notes
|
|
1825
|
+
------------ | ------------- | ------------- | -------------
|
|
1826
|
+
**name** | **str** | |
|
|
1827
|
+
**is_set** | **bool** | |
|
|
1828
|
+
|
|
1829
|
+
## Example
|
|
1830
|
+
|
|
1831
|
+
```python
|
|
1832
|
+
from pulpcore.client.pulp_maven.models.maven_maven_remote_response_hidden_fields_inner import MavenMavenRemoteResponseHiddenFieldsInner
|
|
1833
|
+
|
|
1834
|
+
# TODO update the JSON string below
|
|
1835
|
+
json = "{}"
|
|
1836
|
+
# create an instance of MavenMavenRemoteResponseHiddenFieldsInner from a JSON string
|
|
1837
|
+
maven_maven_remote_response_hidden_fields_inner_instance = MavenMavenRemoteResponseHiddenFieldsInner.from_json(json)
|
|
1838
|
+
# print the JSON string representation of the object
|
|
1839
|
+
print(MavenMavenRemoteResponseHiddenFieldsInner.to_json())
|
|
1840
|
+
|
|
1841
|
+
# convert the object into a dict
|
|
1842
|
+
maven_maven_remote_response_hidden_fields_inner_dict = maven_maven_remote_response_hidden_fields_inner_instance.to_dict()
|
|
1843
|
+
# create an instance of MavenMavenRemoteResponseHiddenFieldsInner from a dict
|
|
1844
|
+
maven_maven_remote_response_hidden_fields_inner_from_dict = MavenMavenRemoteResponseHiddenFieldsInner.from_dict(maven_maven_remote_response_hidden_fields_inner_dict)
|
|
1845
|
+
```
|
|
1846
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
# MavenMavenRemoteResponse
|
|
1850
|
+
|
|
1851
|
+
A Serializer for MavenRemote. Add any new fields if defined on MavenRemote. Similar to the example above, in MavenArtifactSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RemoteSerializer.Meta.validators + [myValidator1, myValidator2]
|
|
1852
|
+
|
|
1853
|
+
## Properties
|
|
1854
|
+
|
|
1855
|
+
Name | Type | Description | Notes
|
|
1856
|
+
------------ | ------------- | ------------- | -------------
|
|
1857
|
+
**pulp_href** | **str** | | [optional] [readonly]
|
|
1858
|
+
**prn** | **str** | The Pulp Resource Name (PRN). | [optional] [readonly]
|
|
1859
|
+
**pulp_created** | **datetime** | Timestamp of creation. | [optional] [readonly]
|
|
1860
|
+
**pulp_last_updated** | **datetime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
|
1861
|
+
**name** | **str** | A unique name for this remote. |
|
|
1862
|
+
**url** | **str** | The URL of an external content source. |
|
|
1863
|
+
**ca_cert** | **str** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
1864
|
+
**client_cert** | **str** | A PEM encoded client certificate used for authentication. | [optional]
|
|
1865
|
+
**tls_validation** | **bool** | If True, TLS peer validation must be performed. | [optional]
|
|
1866
|
+
**proxy_url** | **str** | The proxy URL. Format: scheme://host:port | [optional]
|
|
1867
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | | [optional]
|
|
1868
|
+
**download_concurrency** | **int** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
1869
|
+
**max_retries** | **int** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
1870
|
+
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now. | [optional]
|
|
1871
|
+
**total_timeout** | **float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
1872
|
+
**connect_timeout** | **float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
1873
|
+
**sock_connect_timeout** | **float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
1874
|
+
**sock_read_timeout** | **float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
1875
|
+
**headers** | **List[object]** | Headers for aiohttp.Clientsession | [optional]
|
|
1876
|
+
**rate_limit** | **int** | Limits requests per second for each concurrent downloader | [optional]
|
|
1877
|
+
**hidden_fields** | [**List[MavenMavenRemoteResponseHiddenFieldsInner]**](MavenMavenRemoteResponseHiddenFieldsInner.md) | List of hidden (write only) fields | [optional] [readonly]
|
|
1878
|
+
|
|
1879
|
+
## Example
|
|
1880
|
+
|
|
1881
|
+
```python
|
|
1882
|
+
from pulpcore.client.pulp_maven.models.maven_maven_remote_response import MavenMavenRemoteResponse
|
|
1883
|
+
|
|
1884
|
+
# TODO update the JSON string below
|
|
1885
|
+
json = "{}"
|
|
1886
|
+
# create an instance of MavenMavenRemoteResponse from a JSON string
|
|
1887
|
+
maven_maven_remote_response_instance = MavenMavenRemoteResponse.from_json(json)
|
|
1888
|
+
# print the JSON string representation of the object
|
|
1889
|
+
print(MavenMavenRemoteResponse.to_json())
|
|
1890
|
+
|
|
1891
|
+
# convert the object into a dict
|
|
1892
|
+
maven_maven_remote_response_dict = maven_maven_remote_response_instance.to_dict()
|
|
1893
|
+
# create an instance of MavenMavenRemoteResponse from a dict
|
|
1894
|
+
maven_maven_remote_response_from_dict = MavenMavenRemoteResponse.from_dict(maven_maven_remote_response_dict)
|
|
1895
|
+
```
|
|
1896
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
1897
|
+
|
|
1898
|
+
|
|
1899
|
+
# MavenMavenRepository
|
|
1900
|
+
|
|
1901
|
+
Serializer for Maven Repositories.
|
|
1902
|
+
|
|
1903
|
+
## Properties
|
|
1904
|
+
|
|
1905
|
+
Name | Type | Description | Notes
|
|
1906
|
+
------------ | ------------- | ------------- | -------------
|
|
1907
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | | [optional]
|
|
1908
|
+
**name** | **str** | A unique name for this repository. |
|
|
1909
|
+
**description** | **str** | An optional description. | [optional]
|
|
1910
|
+
**retain_repo_versions** | **int** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
|
1911
|
+
**remote** | **str** | An optional remote to use by default when syncing. | [optional]
|
|
1912
|
+
|
|
1913
|
+
## Example
|
|
1914
|
+
|
|
1915
|
+
```python
|
|
1916
|
+
from pulpcore.client.pulp_maven.models.maven_maven_repository import MavenMavenRepository
|
|
1917
|
+
|
|
1918
|
+
# TODO update the JSON string below
|
|
1919
|
+
json = "{}"
|
|
1920
|
+
# create an instance of MavenMavenRepository from a JSON string
|
|
1921
|
+
maven_maven_repository_instance = MavenMavenRepository.from_json(json)
|
|
1922
|
+
# print the JSON string representation of the object
|
|
1923
|
+
print(MavenMavenRepository.to_json())
|
|
1924
|
+
|
|
1925
|
+
# convert the object into a dict
|
|
1926
|
+
maven_maven_repository_dict = maven_maven_repository_instance.to_dict()
|
|
1927
|
+
# create an instance of MavenMavenRepository from a dict
|
|
1928
|
+
maven_maven_repository_from_dict = MavenMavenRepository.from_dict(maven_maven_repository_dict)
|
|
1929
|
+
```
|
|
1930
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
# MavenMavenRepositoryResponse
|
|
1934
|
+
|
|
1935
|
+
Serializer for Maven Repositories.
|
|
1936
|
+
|
|
1937
|
+
## Properties
|
|
1938
|
+
|
|
1939
|
+
Name | Type | Description | Notes
|
|
1940
|
+
------------ | ------------- | ------------- | -------------
|
|
1941
|
+
**pulp_href** | **str** | | [optional] [readonly]
|
|
1942
|
+
**prn** | **str** | The Pulp Resource Name (PRN). | [optional] [readonly]
|
|
1943
|
+
**pulp_created** | **datetime** | Timestamp of creation. | [optional] [readonly]
|
|
1944
|
+
**pulp_last_updated** | **datetime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
|
1945
|
+
**versions_href** | **str** | | [optional] [readonly]
|
|
1946
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | | [optional]
|
|
1947
|
+
**latest_version_href** | **str** | | [optional] [readonly]
|
|
1948
|
+
**name** | **str** | A unique name for this repository. |
|
|
1949
|
+
**description** | **str** | An optional description. | [optional]
|
|
1950
|
+
**retain_repo_versions** | **int** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
|
1951
|
+
**remote** | **str** | An optional remote to use by default when syncing. | [optional]
|
|
1952
|
+
|
|
1953
|
+
## Example
|
|
1954
|
+
|
|
1955
|
+
```python
|
|
1956
|
+
from pulpcore.client.pulp_maven.models.maven_maven_repository_response import MavenMavenRepositoryResponse
|
|
1957
|
+
|
|
1958
|
+
# TODO update the JSON string below
|
|
1959
|
+
json = "{}"
|
|
1960
|
+
# create an instance of MavenMavenRepositoryResponse from a JSON string
|
|
1961
|
+
maven_maven_repository_response_instance = MavenMavenRepositoryResponse.from_json(json)
|
|
1962
|
+
# print the JSON string representation of the object
|
|
1963
|
+
print(MavenMavenRepositoryResponse.to_json())
|
|
1964
|
+
|
|
1965
|
+
# convert the object into a dict
|
|
1966
|
+
maven_maven_repository_response_dict = maven_maven_repository_response_instance.to_dict()
|
|
1967
|
+
# create an instance of MavenMavenRepositoryResponse from a dict
|
|
1968
|
+
maven_maven_repository_response_from_dict = MavenMavenRepositoryResponse.from_dict(maven_maven_repository_response_dict)
|
|
1969
|
+
```
|
|
1970
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
1971
|
+
|
|
1972
|
+
|
|
1973
|
+
# PaginatedmavenMavenArtifactResponseList
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
## Properties
|
|
1977
|
+
|
|
1978
|
+
Name | Type | Description | Notes
|
|
1979
|
+
------------ | ------------- | ------------- | -------------
|
|
1980
|
+
**count** | **int** | |
|
|
1981
|
+
**next** | **str** | | [optional]
|
|
1982
|
+
**previous** | **str** | | [optional]
|
|
1983
|
+
**results** | [**List[MavenMavenArtifactResponse]**](MavenMavenArtifactResponse.md) | |
|
|
1984
|
+
|
|
1985
|
+
## Example
|
|
1986
|
+
|
|
1987
|
+
```python
|
|
1988
|
+
from pulpcore.client.pulp_maven.models.paginatedmaven_maven_artifact_response_list import PaginatedmavenMavenArtifactResponseList
|
|
1989
|
+
|
|
1990
|
+
# TODO update the JSON string below
|
|
1991
|
+
json = "{}"
|
|
1992
|
+
# create an instance of PaginatedmavenMavenArtifactResponseList from a JSON string
|
|
1993
|
+
paginatedmaven_maven_artifact_response_list_instance = PaginatedmavenMavenArtifactResponseList.from_json(json)
|
|
1994
|
+
# print the JSON string representation of the object
|
|
1995
|
+
print(PaginatedmavenMavenArtifactResponseList.to_json())
|
|
1996
|
+
|
|
1997
|
+
# convert the object into a dict
|
|
1998
|
+
paginatedmaven_maven_artifact_response_list_dict = paginatedmaven_maven_artifact_response_list_instance.to_dict()
|
|
1999
|
+
# create an instance of PaginatedmavenMavenArtifactResponseList from a dict
|
|
2000
|
+
paginatedmaven_maven_artifact_response_list_from_dict = PaginatedmavenMavenArtifactResponseList.from_dict(paginatedmaven_maven_artifact_response_list_dict)
|
|
2001
|
+
```
|
|
2002
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
2003
|
+
|
|
2004
|
+
|
|
2005
|
+
# PaginatedmavenMavenDistributionResponseList
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
## Properties
|
|
2009
|
+
|
|
2010
|
+
Name | Type | Description | Notes
|
|
2011
|
+
------------ | ------------- | ------------- | -------------
|
|
2012
|
+
**count** | **int** | |
|
|
2013
|
+
**next** | **str** | | [optional]
|
|
2014
|
+
**previous** | **str** | | [optional]
|
|
2015
|
+
**results** | [**List[MavenMavenDistributionResponse]**](MavenMavenDistributionResponse.md) | |
|
|
2016
|
+
|
|
2017
|
+
## Example
|
|
2018
|
+
|
|
2019
|
+
```python
|
|
2020
|
+
from pulpcore.client.pulp_maven.models.paginatedmaven_maven_distribution_response_list import PaginatedmavenMavenDistributionResponseList
|
|
2021
|
+
|
|
2022
|
+
# TODO update the JSON string below
|
|
2023
|
+
json = "{}"
|
|
2024
|
+
# create an instance of PaginatedmavenMavenDistributionResponseList from a JSON string
|
|
2025
|
+
paginatedmaven_maven_distribution_response_list_instance = PaginatedmavenMavenDistributionResponseList.from_json(json)
|
|
2026
|
+
# print the JSON string representation of the object
|
|
2027
|
+
print(PaginatedmavenMavenDistributionResponseList.to_json())
|
|
2028
|
+
|
|
2029
|
+
# convert the object into a dict
|
|
2030
|
+
paginatedmaven_maven_distribution_response_list_dict = paginatedmaven_maven_distribution_response_list_instance.to_dict()
|
|
2031
|
+
# create an instance of PaginatedmavenMavenDistributionResponseList from a dict
|
|
2032
|
+
paginatedmaven_maven_distribution_response_list_from_dict = PaginatedmavenMavenDistributionResponseList.from_dict(paginatedmaven_maven_distribution_response_list_dict)
|
|
2033
|
+
```
|
|
2034
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
# PaginatedmavenMavenRemoteResponseList
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
## Properties
|
|
2041
|
+
|
|
2042
|
+
Name | Type | Description | Notes
|
|
2043
|
+
------------ | ------------- | ------------- | -------------
|
|
2044
|
+
**count** | **int** | |
|
|
2045
|
+
**next** | **str** | | [optional]
|
|
2046
|
+
**previous** | **str** | | [optional]
|
|
2047
|
+
**results** | [**List[MavenMavenRemoteResponse]**](MavenMavenRemoteResponse.md) | |
|
|
2048
|
+
|
|
2049
|
+
## Example
|
|
2050
|
+
|
|
2051
|
+
```python
|
|
2052
|
+
from pulpcore.client.pulp_maven.models.paginatedmaven_maven_remote_response_list import PaginatedmavenMavenRemoteResponseList
|
|
2053
|
+
|
|
2054
|
+
# TODO update the JSON string below
|
|
2055
|
+
json = "{}"
|
|
2056
|
+
# create an instance of PaginatedmavenMavenRemoteResponseList from a JSON string
|
|
2057
|
+
paginatedmaven_maven_remote_response_list_instance = PaginatedmavenMavenRemoteResponseList.from_json(json)
|
|
2058
|
+
# print the JSON string representation of the object
|
|
2059
|
+
print(PaginatedmavenMavenRemoteResponseList.to_json())
|
|
2060
|
+
|
|
2061
|
+
# convert the object into a dict
|
|
2062
|
+
paginatedmaven_maven_remote_response_list_dict = paginatedmaven_maven_remote_response_list_instance.to_dict()
|
|
2063
|
+
# create an instance of PaginatedmavenMavenRemoteResponseList from a dict
|
|
2064
|
+
paginatedmaven_maven_remote_response_list_from_dict = PaginatedmavenMavenRemoteResponseList.from_dict(paginatedmaven_maven_remote_response_list_dict)
|
|
2065
|
+
```
|
|
2066
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
# PaginatedmavenMavenRepositoryResponseList
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
## Properties
|
|
2073
|
+
|
|
2074
|
+
Name | Type | Description | Notes
|
|
2075
|
+
------------ | ------------- | ------------- | -------------
|
|
2076
|
+
**count** | **int** | |
|
|
2077
|
+
**next** | **str** | | [optional]
|
|
2078
|
+
**previous** | **str** | | [optional]
|
|
2079
|
+
**results** | [**List[MavenMavenRepositoryResponse]**](MavenMavenRepositoryResponse.md) | |
|
|
2080
|
+
|
|
2081
|
+
## Example
|
|
2082
|
+
|
|
2083
|
+
```python
|
|
2084
|
+
from pulpcore.client.pulp_maven.models.paginatedmaven_maven_repository_response_list import PaginatedmavenMavenRepositoryResponseList
|
|
2085
|
+
|
|
2086
|
+
# TODO update the JSON string below
|
|
2087
|
+
json = "{}"
|
|
2088
|
+
# create an instance of PaginatedmavenMavenRepositoryResponseList from a JSON string
|
|
2089
|
+
paginatedmaven_maven_repository_response_list_instance = PaginatedmavenMavenRepositoryResponseList.from_json(json)
|
|
2090
|
+
# print the JSON string representation of the object
|
|
2091
|
+
print(PaginatedmavenMavenRepositoryResponseList.to_json())
|
|
2092
|
+
|
|
2093
|
+
# convert the object into a dict
|
|
2094
|
+
paginatedmaven_maven_repository_response_list_dict = paginatedmaven_maven_repository_response_list_instance.to_dict()
|
|
2095
|
+
# create an instance of PaginatedmavenMavenRepositoryResponseList from a dict
|
|
2096
|
+
paginatedmaven_maven_repository_response_list_from_dict = PaginatedmavenMavenRepositoryResponseList.from_dict(paginatedmaven_maven_repository_response_list_dict)
|
|
2097
|
+
```
|
|
2098
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
# PaginatedRepositoryVersionResponseList
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
## Properties
|
|
2105
|
+
|
|
2106
|
+
Name | Type | Description | Notes
|
|
2107
|
+
------------ | ------------- | ------------- | -------------
|
|
2108
|
+
**count** | **int** | |
|
|
2109
|
+
**next** | **str** | | [optional]
|
|
2110
|
+
**previous** | **str** | | [optional]
|
|
2111
|
+
**results** | [**List[RepositoryVersionResponse]**](RepositoryVersionResponse.md) | |
|
|
2112
|
+
|
|
2113
|
+
## Example
|
|
2114
|
+
|
|
2115
|
+
```python
|
|
2116
|
+
from pulpcore.client.pulp_maven.models.paginated_repository_version_response_list import PaginatedRepositoryVersionResponseList
|
|
2117
|
+
|
|
2118
|
+
# TODO update the JSON string below
|
|
2119
|
+
json = "{}"
|
|
2120
|
+
# create an instance of PaginatedRepositoryVersionResponseList from a JSON string
|
|
2121
|
+
paginated_repository_version_response_list_instance = PaginatedRepositoryVersionResponseList.from_json(json)
|
|
2122
|
+
# print the JSON string representation of the object
|
|
2123
|
+
print(PaginatedRepositoryVersionResponseList.to_json())
|
|
2124
|
+
|
|
2125
|
+
# convert the object into a dict
|
|
2126
|
+
paginated_repository_version_response_list_dict = paginated_repository_version_response_list_instance.to_dict()
|
|
2127
|
+
# create an instance of PaginatedRepositoryVersionResponseList from a dict
|
|
2128
|
+
paginated_repository_version_response_list_from_dict = PaginatedRepositoryVersionResponseList.from_dict(paginated_repository_version_response_list_dict)
|
|
2129
|
+
```
|
|
2130
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
# PatchedmavenMavenDistribution
|
|
2134
|
+
|
|
2135
|
+
Serializer for Maven Distributions.
|
|
2136
|
+
|
|
2137
|
+
## Properties
|
|
2138
|
+
|
|
2139
|
+
Name | Type | Description | Notes
|
|
2140
|
+
------------ | ------------- | ------------- | -------------
|
|
2141
|
+
**base_path** | **str** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
|
|
2142
|
+
**content_guard** | **str** | An optional content-guard. | [optional]
|
|
2143
|
+
**hidden** | **bool** | Whether this distribution should be shown in the content app. | [optional] [default to False]
|
|
2144
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | | [optional]
|
|
2145
|
+
**name** | **str** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
|
2146
|
+
**repository** | **str** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
2147
|
+
**remote** | **str** | Remote that can be used to fetch content when using pull-through caching. | [optional]
|
|
2148
|
+
|
|
2149
|
+
## Example
|
|
2150
|
+
|
|
2151
|
+
```python
|
|
2152
|
+
from pulpcore.client.pulp_maven.models.patchedmaven_maven_distribution import PatchedmavenMavenDistribution
|
|
2153
|
+
|
|
2154
|
+
# TODO update the JSON string below
|
|
2155
|
+
json = "{}"
|
|
2156
|
+
# create an instance of PatchedmavenMavenDistribution from a JSON string
|
|
2157
|
+
patchedmaven_maven_distribution_instance = PatchedmavenMavenDistribution.from_json(json)
|
|
2158
|
+
# print the JSON string representation of the object
|
|
2159
|
+
print(PatchedmavenMavenDistribution.to_json())
|
|
2160
|
+
|
|
2161
|
+
# convert the object into a dict
|
|
2162
|
+
patchedmaven_maven_distribution_dict = patchedmaven_maven_distribution_instance.to_dict()
|
|
2163
|
+
# create an instance of PatchedmavenMavenDistribution from a dict
|
|
2164
|
+
patchedmaven_maven_distribution_from_dict = PatchedmavenMavenDistribution.from_dict(patchedmaven_maven_distribution_dict)
|
|
2165
|
+
```
|
|
2166
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
# PatchedmavenMavenRemote
|
|
2170
|
+
|
|
2171
|
+
A Serializer for MavenRemote. Add any new fields if defined on MavenRemote. Similar to the example above, in MavenArtifactSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RemoteSerializer.Meta.validators + [myValidator1, myValidator2]
|
|
2172
|
+
|
|
2173
|
+
## Properties
|
|
2174
|
+
|
|
2175
|
+
Name | Type | Description | Notes
|
|
2176
|
+
------------ | ------------- | ------------- | -------------
|
|
2177
|
+
**name** | **str** | A unique name for this remote. | [optional]
|
|
2178
|
+
**url** | **str** | The URL of an external content source. | [optional]
|
|
2179
|
+
**ca_cert** | **str** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
2180
|
+
**client_cert** | **str** | A PEM encoded client certificate used for authentication. | [optional]
|
|
2181
|
+
**client_key** | **str** | A PEM encoded private key used for authentication. | [optional]
|
|
2182
|
+
**tls_validation** | **bool** | If True, TLS peer validation must be performed. | [optional]
|
|
2183
|
+
**proxy_url** | **str** | The proxy URL. Format: scheme://host:port | [optional]
|
|
2184
|
+
**proxy_username** | **str** | The username to authenticte to the proxy. | [optional]
|
|
2185
|
+
**proxy_password** | **str** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
2186
|
+
**username** | **str** | The username to be used for authentication when syncing. | [optional]
|
|
2187
|
+
**password** | **str** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
2188
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | | [optional]
|
|
2189
|
+
**download_concurrency** | **int** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
2190
|
+
**max_retries** | **int** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
2191
|
+
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now. | [optional]
|
|
2192
|
+
**total_timeout** | **float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
2193
|
+
**connect_timeout** | **float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
2194
|
+
**sock_connect_timeout** | **float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
2195
|
+
**sock_read_timeout** | **float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
2196
|
+
**headers** | **List[object]** | Headers for aiohttp.Clientsession | [optional]
|
|
2197
|
+
**rate_limit** | **int** | Limits requests per second for each concurrent downloader | [optional]
|
|
2198
|
+
|
|
2199
|
+
## Example
|
|
2200
|
+
|
|
2201
|
+
```python
|
|
2202
|
+
from pulpcore.client.pulp_maven.models.patchedmaven_maven_remote import PatchedmavenMavenRemote
|
|
2203
|
+
|
|
2204
|
+
# TODO update the JSON string below
|
|
2205
|
+
json = "{}"
|
|
2206
|
+
# create an instance of PatchedmavenMavenRemote from a JSON string
|
|
2207
|
+
patchedmaven_maven_remote_instance = PatchedmavenMavenRemote.from_json(json)
|
|
2208
|
+
# print the JSON string representation of the object
|
|
2209
|
+
print(PatchedmavenMavenRemote.to_json())
|
|
2210
|
+
|
|
2211
|
+
# convert the object into a dict
|
|
2212
|
+
patchedmaven_maven_remote_dict = patchedmaven_maven_remote_instance.to_dict()
|
|
2213
|
+
# create an instance of PatchedmavenMavenRemote from a dict
|
|
2214
|
+
patchedmaven_maven_remote_from_dict = PatchedmavenMavenRemote.from_dict(patchedmaven_maven_remote_dict)
|
|
2215
|
+
```
|
|
2216
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
# PatchedmavenMavenRepository
|
|
2220
|
+
|
|
2221
|
+
Serializer for Maven Repositories.
|
|
2222
|
+
|
|
2223
|
+
## Properties
|
|
2224
|
+
|
|
2225
|
+
Name | Type | Description | Notes
|
|
2226
|
+
------------ | ------------- | ------------- | -------------
|
|
2227
|
+
**pulp_labels** | **Dict[str, Optional[str]]** | | [optional]
|
|
2228
|
+
**name** | **str** | A unique name for this repository. | [optional]
|
|
2229
|
+
**description** | **str** | An optional description. | [optional]
|
|
2230
|
+
**retain_repo_versions** | **int** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
|
2231
|
+
**remote** | **str** | An optional remote to use by default when syncing. | [optional]
|
|
2232
|
+
|
|
2233
|
+
## Example
|
|
2234
|
+
|
|
2235
|
+
```python
|
|
2236
|
+
from pulpcore.client.pulp_maven.models.patchedmaven_maven_repository import PatchedmavenMavenRepository
|
|
2237
|
+
|
|
2238
|
+
# TODO update the JSON string below
|
|
2239
|
+
json = "{}"
|
|
2240
|
+
# create an instance of PatchedmavenMavenRepository from a JSON string
|
|
2241
|
+
patchedmaven_maven_repository_instance = PatchedmavenMavenRepository.from_json(json)
|
|
2242
|
+
# print the JSON string representation of the object
|
|
2243
|
+
print(PatchedmavenMavenRepository.to_json())
|
|
2244
|
+
|
|
2245
|
+
# convert the object into a dict
|
|
2246
|
+
patchedmaven_maven_repository_dict = patchedmaven_maven_repository_instance.to_dict()
|
|
2247
|
+
# create an instance of PatchedmavenMavenRepository from a dict
|
|
2248
|
+
patchedmaven_maven_repository_from_dict = PatchedmavenMavenRepository.from_dict(patchedmaven_maven_repository_dict)
|
|
2249
|
+
```
|
|
2250
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
2251
|
+
|
|
2252
|
+
|
|
2253
|
+
# PolicyEnum
|
|
2254
|
+
|
|
2255
|
+
* `immediate` - When syncing, download all metadata and content now.
|
|
2256
|
+
|
|
2257
|
+
## Enum
|
|
2258
|
+
|
|
2259
|
+
* `IMMEDIATE` (value: `'immediate'`)
|
|
2260
|
+
|
|
2261
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
# pulpcore.client.pulp_maven.RemotesMavenApi
|
|
2265
|
+
|
|
2266
|
+
All URIs are relative to *https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com*
|
|
2267
|
+
|
|
2268
|
+
Method | HTTP request | Description
|
|
2269
|
+
------------- | ------------- | -------------
|
|
2270
|
+
[**create**](RemotesMavenApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/remotes/maven/maven/ | Create a maven remote
|
|
2271
|
+
[**delete**](RemotesMavenApi.md#delete) | **DELETE** {maven_maven_remote_href} | Delete a maven remote
|
|
2272
|
+
[**list**](RemotesMavenApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/remotes/maven/maven/ | List maven remotes
|
|
2273
|
+
[**partial_update**](RemotesMavenApi.md#partial_update) | **PATCH** {maven_maven_remote_href} | Update a maven remote
|
|
2274
|
+
[**read**](RemotesMavenApi.md#read) | **GET** {maven_maven_remote_href} | Inspect a maven remote
|
|
2275
|
+
[**set_label**](RemotesMavenApi.md#set_label) | **POST** {maven_maven_remote_href}set_label/ | Set a label
|
|
2276
|
+
[**unset_label**](RemotesMavenApi.md#unset_label) | **POST** {maven_maven_remote_href}unset_label/ | Unset a label
|
|
2277
|
+
[**update**](RemotesMavenApi.md#update) | **PUT** {maven_maven_remote_href} | Update a maven remote
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
# **create**
|
|
2281
|
+
> MavenMavenRemoteResponse create(pulp_domain, maven_maven_remote, x_task_diagnostics=x_task_diagnostics)
|
|
2282
|
+
|
|
2283
|
+
Create a maven remote
|
|
2284
|
+
|
|
2285
|
+
A ViewSet for MavenRemote.
|
|
2286
|
+
|
|
2287
|
+
### Example
|
|
2288
|
+
|
|
2289
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
2290
|
+
* Basic Authentication (basicAuth):
|
|
2291
|
+
* Api Key Authentication (cookieAuth):
|
|
2292
|
+
|
|
2293
|
+
```python
|
|
2294
|
+
import pulpcore.client.pulp_maven
|
|
2295
|
+
from pulpcore.client.pulp_maven.models.maven_maven_remote import MavenMavenRemote
|
|
2296
|
+
from pulpcore.client.pulp_maven.models.maven_maven_remote_response import MavenMavenRemoteResponse
|
|
2297
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
2298
|
+
from pprint import pprint
|
|
2299
|
+
|
|
2300
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
2301
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
2302
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2303
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
2304
|
+
)
|
|
2305
|
+
|
|
2306
|
+
# The client must configure the authentication and authorization parameters
|
|
2307
|
+
# in accordance with the API server security policy.
|
|
2308
|
+
# Examples for each auth method are provided below, use the example that
|
|
2309
|
+
# satisfies your auth use case.
|
|
2310
|
+
|
|
2311
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
2312
|
+
|
|
2313
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2314
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2315
|
+
username = os.environ["USERNAME"],
|
|
2316
|
+
password = os.environ["PASSWORD"]
|
|
2317
|
+
)
|
|
2318
|
+
|
|
2319
|
+
# Configure API key authorization: cookieAuth
|
|
2320
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
2321
|
+
|
|
2322
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
2323
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
2324
|
+
|
|
2325
|
+
# Enter a context with an instance of the API client
|
|
2326
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
2327
|
+
# Create an instance of the API class
|
|
2328
|
+
api_instance = pulpcore.client.pulp_maven.RemotesMavenApi(api_client)
|
|
2329
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
2330
|
+
maven_maven_remote = pulpcore.client.pulp_maven.MavenMavenRemote() # MavenMavenRemote |
|
|
2331
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
2332
|
+
|
|
2333
|
+
try:
|
|
2334
|
+
# Create a maven remote
|
|
2335
|
+
api_response = api_instance.create(pulp_domain, maven_maven_remote, x_task_diagnostics=x_task_diagnostics)
|
|
2336
|
+
print("The response of RemotesMavenApi->create:\n")
|
|
2337
|
+
pprint(api_response)
|
|
2338
|
+
except Exception as e:
|
|
2339
|
+
print("Exception when calling RemotesMavenApi->create: %s\n" % e)
|
|
2340
|
+
```
|
|
2341
|
+
|
|
2342
|
+
|
|
2343
|
+
|
|
2344
|
+
### Parameters
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
Name | Type | Description | Notes
|
|
2348
|
+
------------- | ------------- | ------------- | -------------
|
|
2349
|
+
**pulp_domain** | **str**| |
|
|
2350
|
+
**maven_maven_remote** | [**MavenMavenRemote**](MavenMavenRemote.md)| |
|
|
2351
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
2352
|
+
|
|
2353
|
+
### Return type
|
|
2354
|
+
|
|
2355
|
+
[**MavenMavenRemoteResponse**](MavenMavenRemoteResponse.md)
|
|
2356
|
+
|
|
2357
|
+
### Authorization
|
|
2358
|
+
|
|
2359
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2360
|
+
|
|
2361
|
+
### HTTP request headers
|
|
2362
|
+
|
|
2363
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
2364
|
+
- **Accept**: application/json
|
|
2365
|
+
|
|
2366
|
+
### HTTP response details
|
|
2367
|
+
|
|
2368
|
+
| Status code | Description | Response headers |
|
|
2369
|
+
|-------------|-------------|------------------|
|
|
2370
|
+
**201** | | - |
|
|
2371
|
+
|
|
2372
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
2373
|
+
|
|
2374
|
+
# **delete**
|
|
2375
|
+
> AsyncOperationResponse delete(maven_maven_remote_href, x_task_diagnostics=x_task_diagnostics)
|
|
2376
|
+
|
|
2377
|
+
Delete a maven remote
|
|
2378
|
+
|
|
2379
|
+
Trigger an asynchronous delete task
|
|
2380
|
+
|
|
2381
|
+
### Example
|
|
2382
|
+
|
|
2383
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
2384
|
+
* Basic Authentication (basicAuth):
|
|
2385
|
+
* Api Key Authentication (cookieAuth):
|
|
2386
|
+
|
|
2387
|
+
```python
|
|
2388
|
+
import pulpcore.client.pulp_maven
|
|
2389
|
+
from pulpcore.client.pulp_maven.models.async_operation_response import AsyncOperationResponse
|
|
2390
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
2391
|
+
from pprint import pprint
|
|
2392
|
+
|
|
2393
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
2394
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
2395
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2396
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
2397
|
+
)
|
|
2398
|
+
|
|
2399
|
+
# The client must configure the authentication and authorization parameters
|
|
2400
|
+
# in accordance with the API server security policy.
|
|
2401
|
+
# Examples for each auth method are provided below, use the example that
|
|
2402
|
+
# satisfies your auth use case.
|
|
2403
|
+
|
|
2404
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
2405
|
+
|
|
2406
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2407
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2408
|
+
username = os.environ["USERNAME"],
|
|
2409
|
+
password = os.environ["PASSWORD"]
|
|
2410
|
+
)
|
|
2411
|
+
|
|
2412
|
+
# Configure API key authorization: cookieAuth
|
|
2413
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
2414
|
+
|
|
2415
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
2416
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
2417
|
+
|
|
2418
|
+
# Enter a context with an instance of the API client
|
|
2419
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
2420
|
+
# Create an instance of the API class
|
|
2421
|
+
api_instance = pulpcore.client.pulp_maven.RemotesMavenApi(api_client)
|
|
2422
|
+
maven_maven_remote_href = 'maven_maven_remote_href_example' # str |
|
|
2423
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
2424
|
+
|
|
2425
|
+
try:
|
|
2426
|
+
# Delete a maven remote
|
|
2427
|
+
api_response = api_instance.delete(maven_maven_remote_href, x_task_diagnostics=x_task_diagnostics)
|
|
2428
|
+
print("The response of RemotesMavenApi->delete:\n")
|
|
2429
|
+
pprint(api_response)
|
|
2430
|
+
except Exception as e:
|
|
2431
|
+
print("Exception when calling RemotesMavenApi->delete: %s\n" % e)
|
|
2432
|
+
```
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
### Parameters
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
Name | Type | Description | Notes
|
|
2440
|
+
------------- | ------------- | ------------- | -------------
|
|
2441
|
+
**maven_maven_remote_href** | **str**| |
|
|
2442
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
2443
|
+
|
|
2444
|
+
### Return type
|
|
2445
|
+
|
|
2446
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
2447
|
+
|
|
2448
|
+
### Authorization
|
|
2449
|
+
|
|
2450
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2451
|
+
|
|
2452
|
+
### HTTP request headers
|
|
2453
|
+
|
|
2454
|
+
- **Content-Type**: Not defined
|
|
2455
|
+
- **Accept**: application/json
|
|
2456
|
+
|
|
2457
|
+
### HTTP response details
|
|
2458
|
+
|
|
2459
|
+
| Status code | Description | Response headers |
|
|
2460
|
+
|-------------|-------------|------------------|
|
|
2461
|
+
**202** | | - |
|
|
2462
|
+
|
|
2463
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
2464
|
+
|
|
2465
|
+
# **list**
|
|
2466
|
+
> PaginatedmavenMavenRemoteResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, pulp_last_updated=pulp_last_updated, pulp_last_updated__gt=pulp_last_updated__gt, pulp_last_updated__gte=pulp_last_updated__gte, pulp_last_updated__isnull=pulp_last_updated__isnull, pulp_last_updated__lt=pulp_last_updated__lt, pulp_last_updated__lte=pulp_last_updated__lte, pulp_last_updated__range=pulp_last_updated__range, q=q, fields=fields, exclude_fields=exclude_fields)
|
|
2467
|
+
|
|
2468
|
+
List maven remotes
|
|
2469
|
+
|
|
2470
|
+
A ViewSet for MavenRemote.
|
|
2471
|
+
|
|
2472
|
+
### Example
|
|
2473
|
+
|
|
2474
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
2475
|
+
* Basic Authentication (basicAuth):
|
|
2476
|
+
* Api Key Authentication (cookieAuth):
|
|
2477
|
+
|
|
2478
|
+
```python
|
|
2479
|
+
import pulpcore.client.pulp_maven
|
|
2480
|
+
from pulpcore.client.pulp_maven.models.paginatedmaven_maven_remote_response_list import PaginatedmavenMavenRemoteResponseList
|
|
2481
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
2482
|
+
from pprint import pprint
|
|
2483
|
+
|
|
2484
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
2485
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
2486
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2487
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
2488
|
+
)
|
|
2489
|
+
|
|
2490
|
+
# The client must configure the authentication and authorization parameters
|
|
2491
|
+
# in accordance with the API server security policy.
|
|
2492
|
+
# Examples for each auth method are provided below, use the example that
|
|
2493
|
+
# satisfies your auth use case.
|
|
2494
|
+
|
|
2495
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
2496
|
+
|
|
2497
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2498
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2499
|
+
username = os.environ["USERNAME"],
|
|
2500
|
+
password = os.environ["PASSWORD"]
|
|
2501
|
+
)
|
|
2502
|
+
|
|
2503
|
+
# Configure API key authorization: cookieAuth
|
|
2504
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
2505
|
+
|
|
2506
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
2507
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
2508
|
+
|
|
2509
|
+
# Enter a context with an instance of the API client
|
|
2510
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
2511
|
+
# Create an instance of the API class
|
|
2512
|
+
api_instance = pulpcore.client.pulp_maven.RemotesMavenApi(api_client)
|
|
2513
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
2514
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
2515
|
+
limit = 56 # int | Number of results to return per page. (optional)
|
|
2516
|
+
name = 'name_example' # str | Filter results where name matches value (optional)
|
|
2517
|
+
name__contains = 'name__contains_example' # str | Filter results where name contains value (optional)
|
|
2518
|
+
name__icontains = 'name__icontains_example' # str | Filter results where name contains value (optional)
|
|
2519
|
+
name__iexact = 'name__iexact_example' # str | Filter results where name matches value (optional)
|
|
2520
|
+
name__in = ['name__in_example'] # List[str] | Filter results where name is in a comma-separated list of values (optional)
|
|
2521
|
+
name__iregex = 'name__iregex_example' # str | Filter results where name matches regex value (optional)
|
|
2522
|
+
name__istartswith = 'name__istartswith_example' # str | Filter results where name starts with value (optional)
|
|
2523
|
+
name__regex = 'name__regex_example' # str | Filter results where name matches regex value (optional)
|
|
2524
|
+
name__startswith = 'name__startswith_example' # str | Filter results where name starts with value (optional)
|
|
2525
|
+
offset = 56 # int | The initial index from which to return the results. (optional)
|
|
2526
|
+
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
|
|
2527
|
+
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
2528
|
+
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
2529
|
+
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
2530
|
+
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
|
|
2531
|
+
pulp_last_updated = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated matches value (optional)
|
|
2532
|
+
pulp_last_updated__gt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is greater than value (optional)
|
|
2533
|
+
pulp_last_updated__gte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is greater than or equal to value (optional)
|
|
2534
|
+
pulp_last_updated__isnull = True # bool | Filter results where pulp_last_updated has a null value (optional)
|
|
2535
|
+
pulp_last_updated__lt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is less than value (optional)
|
|
2536
|
+
pulp_last_updated__lte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is less than or equal to value (optional)
|
|
2537
|
+
pulp_last_updated__range = ['2013-10-20T19:20:30+01:00'] # List[datetime] | Filter results where pulp_last_updated is between two comma separated values (optional)
|
|
2538
|
+
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
|
|
2539
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
2540
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
2541
|
+
|
|
2542
|
+
try:
|
|
2543
|
+
# List maven remotes
|
|
2544
|
+
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, pulp_last_updated=pulp_last_updated, pulp_last_updated__gt=pulp_last_updated__gt, pulp_last_updated__gte=pulp_last_updated__gte, pulp_last_updated__isnull=pulp_last_updated__isnull, pulp_last_updated__lt=pulp_last_updated__lt, pulp_last_updated__lte=pulp_last_updated__lte, pulp_last_updated__range=pulp_last_updated__range, q=q, fields=fields, exclude_fields=exclude_fields)
|
|
2545
|
+
print("The response of RemotesMavenApi->list:\n")
|
|
2546
|
+
pprint(api_response)
|
|
2547
|
+
except Exception as e:
|
|
2548
|
+
print("Exception when calling RemotesMavenApi->list: %s\n" % e)
|
|
2549
|
+
```
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
|
|
2553
|
+
### Parameters
|
|
2554
|
+
|
|
2555
|
+
|
|
2556
|
+
Name | Type | Description | Notes
|
|
2557
|
+
------------- | ------------- | ------------- | -------------
|
|
2558
|
+
**pulp_domain** | **str**| |
|
|
2559
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
2560
|
+
**limit** | **int**| Number of results to return per page. | [optional]
|
|
2561
|
+
**name** | **str**| Filter results where name matches value | [optional]
|
|
2562
|
+
**name__contains** | **str**| Filter results where name contains value | [optional]
|
|
2563
|
+
**name__icontains** | **str**| Filter results where name contains value | [optional]
|
|
2564
|
+
**name__iexact** | **str**| Filter results where name matches value | [optional]
|
|
2565
|
+
**name__in** | [**List[str]**](str.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
2566
|
+
**name__iregex** | **str**| Filter results where name matches regex value | [optional]
|
|
2567
|
+
**name__istartswith** | **str**| Filter results where name starts with value | [optional]
|
|
2568
|
+
**name__regex** | **str**| Filter results where name matches regex value | [optional]
|
|
2569
|
+
**name__startswith** | **str**| Filter results where name starts with value | [optional]
|
|
2570
|
+
**offset** | **int**| The initial index from which to return the results. | [optional]
|
|
2571
|
+
**ordering** | [**List[str]**](str.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
|
2572
|
+
**prn__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
2573
|
+
**pulp_href__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
2574
|
+
**pulp_id__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
2575
|
+
**pulp_label_select** | **str**| Filter labels by search string | [optional]
|
|
2576
|
+
**pulp_last_updated** | **datetime**| Filter results where pulp_last_updated matches value | [optional]
|
|
2577
|
+
**pulp_last_updated__gt** | **datetime**| Filter results where pulp_last_updated is greater than value | [optional]
|
|
2578
|
+
**pulp_last_updated__gte** | **datetime**| Filter results where pulp_last_updated is greater than or equal to value | [optional]
|
|
2579
|
+
**pulp_last_updated__isnull** | **bool**| Filter results where pulp_last_updated has a null value | [optional]
|
|
2580
|
+
**pulp_last_updated__lt** | **datetime**| Filter results where pulp_last_updated is less than value | [optional]
|
|
2581
|
+
**pulp_last_updated__lte** | **datetime**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
|
2582
|
+
**pulp_last_updated__range** | [**List[datetime]**](datetime.md)| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
|
2583
|
+
**q** | **str**| Filter results by using NOT, AND and OR operations on other filters | [optional]
|
|
2584
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
2585
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
2586
|
+
|
|
2587
|
+
### Return type
|
|
2588
|
+
|
|
2589
|
+
[**PaginatedmavenMavenRemoteResponseList**](PaginatedmavenMavenRemoteResponseList.md)
|
|
2590
|
+
|
|
2591
|
+
### Authorization
|
|
2592
|
+
|
|
2593
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2594
|
+
|
|
2595
|
+
### HTTP request headers
|
|
2596
|
+
|
|
2597
|
+
- **Content-Type**: Not defined
|
|
2598
|
+
- **Accept**: application/json
|
|
2599
|
+
|
|
2600
|
+
### HTTP response details
|
|
2601
|
+
|
|
2602
|
+
| Status code | Description | Response headers |
|
|
2603
|
+
|-------------|-------------|------------------|
|
|
2604
|
+
**200** | | - |
|
|
2605
|
+
|
|
2606
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
2607
|
+
|
|
2608
|
+
# **partial_update**
|
|
2609
|
+
> MavenMavenRemoteResponse partial_update(maven_maven_remote_href, patchedmaven_maven_remote, x_task_diagnostics=x_task_diagnostics)
|
|
2610
|
+
|
|
2611
|
+
Update a maven remote
|
|
2612
|
+
|
|
2613
|
+
Update the entity partially and trigger an asynchronous task if necessary
|
|
2614
|
+
|
|
2615
|
+
### Example
|
|
2616
|
+
|
|
2617
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
2618
|
+
* Basic Authentication (basicAuth):
|
|
2619
|
+
* Api Key Authentication (cookieAuth):
|
|
2620
|
+
|
|
2621
|
+
```python
|
|
2622
|
+
import pulpcore.client.pulp_maven
|
|
2623
|
+
from pulpcore.client.pulp_maven.models.maven_maven_remote_response import MavenMavenRemoteResponse
|
|
2624
|
+
from pulpcore.client.pulp_maven.models.patchedmaven_maven_remote import PatchedmavenMavenRemote
|
|
2625
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
2626
|
+
from pprint import pprint
|
|
2627
|
+
|
|
2628
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
2629
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
2630
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2631
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
2632
|
+
)
|
|
2633
|
+
|
|
2634
|
+
# The client must configure the authentication and authorization parameters
|
|
2635
|
+
# in accordance with the API server security policy.
|
|
2636
|
+
# Examples for each auth method are provided below, use the example that
|
|
2637
|
+
# satisfies your auth use case.
|
|
2638
|
+
|
|
2639
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
2640
|
+
|
|
2641
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2642
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2643
|
+
username = os.environ["USERNAME"],
|
|
2644
|
+
password = os.environ["PASSWORD"]
|
|
2645
|
+
)
|
|
2646
|
+
|
|
2647
|
+
# Configure API key authorization: cookieAuth
|
|
2648
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
2649
|
+
|
|
2650
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
2651
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
2652
|
+
|
|
2653
|
+
# Enter a context with an instance of the API client
|
|
2654
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
2655
|
+
# Create an instance of the API class
|
|
2656
|
+
api_instance = pulpcore.client.pulp_maven.RemotesMavenApi(api_client)
|
|
2657
|
+
maven_maven_remote_href = 'maven_maven_remote_href_example' # str |
|
|
2658
|
+
patchedmaven_maven_remote = pulpcore.client.pulp_maven.PatchedmavenMavenRemote() # PatchedmavenMavenRemote |
|
|
2659
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
2660
|
+
|
|
2661
|
+
try:
|
|
2662
|
+
# Update a maven remote
|
|
2663
|
+
api_response = api_instance.partial_update(maven_maven_remote_href, patchedmaven_maven_remote, x_task_diagnostics=x_task_diagnostics)
|
|
2664
|
+
print("The response of RemotesMavenApi->partial_update:\n")
|
|
2665
|
+
pprint(api_response)
|
|
2666
|
+
except Exception as e:
|
|
2667
|
+
print("Exception when calling RemotesMavenApi->partial_update: %s\n" % e)
|
|
2668
|
+
```
|
|
2669
|
+
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
### Parameters
|
|
2673
|
+
|
|
2674
|
+
|
|
2675
|
+
Name | Type | Description | Notes
|
|
2676
|
+
------------- | ------------- | ------------- | -------------
|
|
2677
|
+
**maven_maven_remote_href** | **str**| |
|
|
2678
|
+
**patchedmaven_maven_remote** | [**PatchedmavenMavenRemote**](PatchedmavenMavenRemote.md)| |
|
|
2679
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
2680
|
+
|
|
2681
|
+
### Return type
|
|
2682
|
+
|
|
2683
|
+
[**MavenMavenRemoteResponse**](MavenMavenRemoteResponse.md)
|
|
2684
|
+
|
|
2685
|
+
### Authorization
|
|
2686
|
+
|
|
2687
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2688
|
+
|
|
2689
|
+
### HTTP request headers
|
|
2690
|
+
|
|
2691
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
2692
|
+
- **Accept**: application/json
|
|
2693
|
+
|
|
2694
|
+
### HTTP response details
|
|
2695
|
+
|
|
2696
|
+
| Status code | Description | Response headers |
|
|
2697
|
+
|-------------|-------------|------------------|
|
|
2698
|
+
**200** | | - |
|
|
2699
|
+
**202** | | - |
|
|
2700
|
+
|
|
2701
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
2702
|
+
|
|
2703
|
+
# **read**
|
|
2704
|
+
> MavenMavenRemoteResponse read(maven_maven_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
2705
|
+
|
|
2706
|
+
Inspect a maven remote
|
|
2707
|
+
|
|
2708
|
+
A ViewSet for MavenRemote.
|
|
2709
|
+
|
|
2710
|
+
### Example
|
|
2711
|
+
|
|
2712
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
2713
|
+
* Basic Authentication (basicAuth):
|
|
2714
|
+
* Api Key Authentication (cookieAuth):
|
|
2715
|
+
|
|
2716
|
+
```python
|
|
2717
|
+
import pulpcore.client.pulp_maven
|
|
2718
|
+
from pulpcore.client.pulp_maven.models.maven_maven_remote_response import MavenMavenRemoteResponse
|
|
2719
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
2720
|
+
from pprint import pprint
|
|
2721
|
+
|
|
2722
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
2723
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
2724
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2725
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
2726
|
+
)
|
|
2727
|
+
|
|
2728
|
+
# The client must configure the authentication and authorization parameters
|
|
2729
|
+
# in accordance with the API server security policy.
|
|
2730
|
+
# Examples for each auth method are provided below, use the example that
|
|
2731
|
+
# satisfies your auth use case.
|
|
2732
|
+
|
|
2733
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
2734
|
+
|
|
2735
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2736
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2737
|
+
username = os.environ["USERNAME"],
|
|
2738
|
+
password = os.environ["PASSWORD"]
|
|
2739
|
+
)
|
|
2740
|
+
|
|
2741
|
+
# Configure API key authorization: cookieAuth
|
|
2742
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
2743
|
+
|
|
2744
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
2745
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
2746
|
+
|
|
2747
|
+
# Enter a context with an instance of the API client
|
|
2748
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
2749
|
+
# Create an instance of the API class
|
|
2750
|
+
api_instance = pulpcore.client.pulp_maven.RemotesMavenApi(api_client)
|
|
2751
|
+
maven_maven_remote_href = 'maven_maven_remote_href_example' # str |
|
|
2752
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
2753
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
2754
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
2755
|
+
|
|
2756
|
+
try:
|
|
2757
|
+
# Inspect a maven remote
|
|
2758
|
+
api_response = api_instance.read(maven_maven_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
2759
|
+
print("The response of RemotesMavenApi->read:\n")
|
|
2760
|
+
pprint(api_response)
|
|
2761
|
+
except Exception as e:
|
|
2762
|
+
print("Exception when calling RemotesMavenApi->read: %s\n" % e)
|
|
2763
|
+
```
|
|
2764
|
+
|
|
2765
|
+
|
|
2766
|
+
|
|
2767
|
+
### Parameters
|
|
2768
|
+
|
|
2769
|
+
|
|
2770
|
+
Name | Type | Description | Notes
|
|
2771
|
+
------------- | ------------- | ------------- | -------------
|
|
2772
|
+
**maven_maven_remote_href** | **str**| |
|
|
2773
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
2774
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
2775
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
2776
|
+
|
|
2777
|
+
### Return type
|
|
2778
|
+
|
|
2779
|
+
[**MavenMavenRemoteResponse**](MavenMavenRemoteResponse.md)
|
|
2780
|
+
|
|
2781
|
+
### Authorization
|
|
2782
|
+
|
|
2783
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2784
|
+
|
|
2785
|
+
### HTTP request headers
|
|
2786
|
+
|
|
2787
|
+
- **Content-Type**: Not defined
|
|
2788
|
+
- **Accept**: application/json
|
|
2789
|
+
|
|
2790
|
+
### HTTP response details
|
|
2791
|
+
|
|
2792
|
+
| Status code | Description | Response headers |
|
|
2793
|
+
|-------------|-------------|------------------|
|
|
2794
|
+
**200** | | - |
|
|
2795
|
+
|
|
2796
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
2797
|
+
|
|
2798
|
+
# **set_label**
|
|
2799
|
+
> SetLabelResponse set_label(maven_maven_remote_href, set_label, x_task_diagnostics=x_task_diagnostics)
|
|
2800
|
+
|
|
2801
|
+
Set a label
|
|
2802
|
+
|
|
2803
|
+
Set a single pulp_label on the object to a specific value or null.
|
|
2804
|
+
|
|
2805
|
+
### Example
|
|
2806
|
+
|
|
2807
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
2808
|
+
* Basic Authentication (basicAuth):
|
|
2809
|
+
* Api Key Authentication (cookieAuth):
|
|
2810
|
+
|
|
2811
|
+
```python
|
|
2812
|
+
import pulpcore.client.pulp_maven
|
|
2813
|
+
from pulpcore.client.pulp_maven.models.set_label import SetLabel
|
|
2814
|
+
from pulpcore.client.pulp_maven.models.set_label_response import SetLabelResponse
|
|
2815
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
2816
|
+
from pprint import pprint
|
|
2817
|
+
|
|
2818
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
2819
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
2820
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2821
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
2822
|
+
)
|
|
2823
|
+
|
|
2824
|
+
# The client must configure the authentication and authorization parameters
|
|
2825
|
+
# in accordance with the API server security policy.
|
|
2826
|
+
# Examples for each auth method are provided below, use the example that
|
|
2827
|
+
# satisfies your auth use case.
|
|
2828
|
+
|
|
2829
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
2830
|
+
|
|
2831
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2832
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2833
|
+
username = os.environ["USERNAME"],
|
|
2834
|
+
password = os.environ["PASSWORD"]
|
|
2835
|
+
)
|
|
2836
|
+
|
|
2837
|
+
# Configure API key authorization: cookieAuth
|
|
2838
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
2839
|
+
|
|
2840
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
2841
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
2842
|
+
|
|
2843
|
+
# Enter a context with an instance of the API client
|
|
2844
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
2845
|
+
# Create an instance of the API class
|
|
2846
|
+
api_instance = pulpcore.client.pulp_maven.RemotesMavenApi(api_client)
|
|
2847
|
+
maven_maven_remote_href = 'maven_maven_remote_href_example' # str |
|
|
2848
|
+
set_label = pulpcore.client.pulp_maven.SetLabel() # SetLabel |
|
|
2849
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
2850
|
+
|
|
2851
|
+
try:
|
|
2852
|
+
# Set a label
|
|
2853
|
+
api_response = api_instance.set_label(maven_maven_remote_href, set_label, x_task_diagnostics=x_task_diagnostics)
|
|
2854
|
+
print("The response of RemotesMavenApi->set_label:\n")
|
|
2855
|
+
pprint(api_response)
|
|
2856
|
+
except Exception as e:
|
|
2857
|
+
print("Exception when calling RemotesMavenApi->set_label: %s\n" % e)
|
|
2858
|
+
```
|
|
2859
|
+
|
|
2860
|
+
|
|
2861
|
+
|
|
2862
|
+
### Parameters
|
|
2863
|
+
|
|
2864
|
+
|
|
2865
|
+
Name | Type | Description | Notes
|
|
2866
|
+
------------- | ------------- | ------------- | -------------
|
|
2867
|
+
**maven_maven_remote_href** | **str**| |
|
|
2868
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
|
2869
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
2870
|
+
|
|
2871
|
+
### Return type
|
|
2872
|
+
|
|
2873
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
|
2874
|
+
|
|
2875
|
+
### Authorization
|
|
2876
|
+
|
|
2877
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2878
|
+
|
|
2879
|
+
### HTTP request headers
|
|
2880
|
+
|
|
2881
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
2882
|
+
- **Accept**: application/json
|
|
2883
|
+
|
|
2884
|
+
### HTTP response details
|
|
2885
|
+
|
|
2886
|
+
| Status code | Description | Response headers |
|
|
2887
|
+
|-------------|-------------|------------------|
|
|
2888
|
+
**201** | | - |
|
|
2889
|
+
|
|
2890
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
2891
|
+
|
|
2892
|
+
# **unset_label**
|
|
2893
|
+
> UnsetLabelResponse unset_label(maven_maven_remote_href, unset_label, x_task_diagnostics=x_task_diagnostics)
|
|
2894
|
+
|
|
2895
|
+
Unset a label
|
|
2896
|
+
|
|
2897
|
+
Unset a single pulp_label on the object.
|
|
2898
|
+
|
|
2899
|
+
### Example
|
|
2900
|
+
|
|
2901
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
2902
|
+
* Basic Authentication (basicAuth):
|
|
2903
|
+
* Api Key Authentication (cookieAuth):
|
|
2904
|
+
|
|
2905
|
+
```python
|
|
2906
|
+
import pulpcore.client.pulp_maven
|
|
2907
|
+
from pulpcore.client.pulp_maven.models.unset_label import UnsetLabel
|
|
2908
|
+
from pulpcore.client.pulp_maven.models.unset_label_response import UnsetLabelResponse
|
|
2909
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
2910
|
+
from pprint import pprint
|
|
2911
|
+
|
|
2912
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
2913
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
2914
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2915
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
2916
|
+
)
|
|
2917
|
+
|
|
2918
|
+
# The client must configure the authentication and authorization parameters
|
|
2919
|
+
# in accordance with the API server security policy.
|
|
2920
|
+
# Examples for each auth method are provided below, use the example that
|
|
2921
|
+
# satisfies your auth use case.
|
|
2922
|
+
|
|
2923
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
2924
|
+
|
|
2925
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2926
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
2927
|
+
username = os.environ["USERNAME"],
|
|
2928
|
+
password = os.environ["PASSWORD"]
|
|
2929
|
+
)
|
|
2930
|
+
|
|
2931
|
+
# Configure API key authorization: cookieAuth
|
|
2932
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
2933
|
+
|
|
2934
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
2935
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
2936
|
+
|
|
2937
|
+
# Enter a context with an instance of the API client
|
|
2938
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
2939
|
+
# Create an instance of the API class
|
|
2940
|
+
api_instance = pulpcore.client.pulp_maven.RemotesMavenApi(api_client)
|
|
2941
|
+
maven_maven_remote_href = 'maven_maven_remote_href_example' # str |
|
|
2942
|
+
unset_label = pulpcore.client.pulp_maven.UnsetLabel() # UnsetLabel |
|
|
2943
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
2944
|
+
|
|
2945
|
+
try:
|
|
2946
|
+
# Unset a label
|
|
2947
|
+
api_response = api_instance.unset_label(maven_maven_remote_href, unset_label, x_task_diagnostics=x_task_diagnostics)
|
|
2948
|
+
print("The response of RemotesMavenApi->unset_label:\n")
|
|
2949
|
+
pprint(api_response)
|
|
2950
|
+
except Exception as e:
|
|
2951
|
+
print("Exception when calling RemotesMavenApi->unset_label: %s\n" % e)
|
|
2952
|
+
```
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
|
|
2956
|
+
### Parameters
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
Name | Type | Description | Notes
|
|
2960
|
+
------------- | ------------- | ------------- | -------------
|
|
2961
|
+
**maven_maven_remote_href** | **str**| |
|
|
2962
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
|
2963
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
2964
|
+
|
|
2965
|
+
### Return type
|
|
2966
|
+
|
|
2967
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
|
2968
|
+
|
|
2969
|
+
### Authorization
|
|
2970
|
+
|
|
2971
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2972
|
+
|
|
2973
|
+
### HTTP request headers
|
|
2974
|
+
|
|
2975
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
2976
|
+
- **Accept**: application/json
|
|
2977
|
+
|
|
2978
|
+
### HTTP response details
|
|
2979
|
+
|
|
2980
|
+
| Status code | Description | Response headers |
|
|
2981
|
+
|-------------|-------------|------------------|
|
|
2982
|
+
**201** | | - |
|
|
2983
|
+
|
|
2984
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
2985
|
+
|
|
2986
|
+
# **update**
|
|
2987
|
+
> MavenMavenRemoteResponse update(maven_maven_remote_href, maven_maven_remote, x_task_diagnostics=x_task_diagnostics)
|
|
2988
|
+
|
|
2989
|
+
Update a maven remote
|
|
2990
|
+
|
|
2991
|
+
Update the entity and trigger an asynchronous task if necessary
|
|
2992
|
+
|
|
2993
|
+
### Example
|
|
2994
|
+
|
|
2995
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
2996
|
+
* Basic Authentication (basicAuth):
|
|
2997
|
+
* Api Key Authentication (cookieAuth):
|
|
2998
|
+
|
|
2999
|
+
```python
|
|
3000
|
+
import pulpcore.client.pulp_maven
|
|
3001
|
+
from pulpcore.client.pulp_maven.models.maven_maven_remote import MavenMavenRemote
|
|
3002
|
+
from pulpcore.client.pulp_maven.models.maven_maven_remote_response import MavenMavenRemoteResponse
|
|
3003
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
3004
|
+
from pprint import pprint
|
|
3005
|
+
|
|
3006
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
3007
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
3008
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3009
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
3010
|
+
)
|
|
3011
|
+
|
|
3012
|
+
# The client must configure the authentication and authorization parameters
|
|
3013
|
+
# in accordance with the API server security policy.
|
|
3014
|
+
# Examples for each auth method are provided below, use the example that
|
|
3015
|
+
# satisfies your auth use case.
|
|
3016
|
+
|
|
3017
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
3018
|
+
|
|
3019
|
+
# Configure HTTP basic authorization: basicAuth
|
|
3020
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3021
|
+
username = os.environ["USERNAME"],
|
|
3022
|
+
password = os.environ["PASSWORD"]
|
|
3023
|
+
)
|
|
3024
|
+
|
|
3025
|
+
# Configure API key authorization: cookieAuth
|
|
3026
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
3027
|
+
|
|
3028
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
3029
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
3030
|
+
|
|
3031
|
+
# Enter a context with an instance of the API client
|
|
3032
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
3033
|
+
# Create an instance of the API class
|
|
3034
|
+
api_instance = pulpcore.client.pulp_maven.RemotesMavenApi(api_client)
|
|
3035
|
+
maven_maven_remote_href = 'maven_maven_remote_href_example' # str |
|
|
3036
|
+
maven_maven_remote = pulpcore.client.pulp_maven.MavenMavenRemote() # MavenMavenRemote |
|
|
3037
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
3038
|
+
|
|
3039
|
+
try:
|
|
3040
|
+
# Update a maven remote
|
|
3041
|
+
api_response = api_instance.update(maven_maven_remote_href, maven_maven_remote, x_task_diagnostics=x_task_diagnostics)
|
|
3042
|
+
print("The response of RemotesMavenApi->update:\n")
|
|
3043
|
+
pprint(api_response)
|
|
3044
|
+
except Exception as e:
|
|
3045
|
+
print("Exception when calling RemotesMavenApi->update: %s\n" % e)
|
|
3046
|
+
```
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
### Parameters
|
|
3051
|
+
|
|
3052
|
+
|
|
3053
|
+
Name | Type | Description | Notes
|
|
3054
|
+
------------- | ------------- | ------------- | -------------
|
|
3055
|
+
**maven_maven_remote_href** | **str**| |
|
|
3056
|
+
**maven_maven_remote** | [**MavenMavenRemote**](MavenMavenRemote.md)| |
|
|
3057
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
3058
|
+
|
|
3059
|
+
### Return type
|
|
3060
|
+
|
|
3061
|
+
[**MavenMavenRemoteResponse**](MavenMavenRemoteResponse.md)
|
|
3062
|
+
|
|
3063
|
+
### Authorization
|
|
3064
|
+
|
|
3065
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
3066
|
+
|
|
3067
|
+
### HTTP request headers
|
|
3068
|
+
|
|
3069
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
3070
|
+
- **Accept**: application/json
|
|
3071
|
+
|
|
3072
|
+
### HTTP response details
|
|
3073
|
+
|
|
3074
|
+
| Status code | Description | Response headers |
|
|
3075
|
+
|-------------|-------------|------------------|
|
|
3076
|
+
**200** | | - |
|
|
3077
|
+
**202** | | - |
|
|
3078
|
+
|
|
3079
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
3080
|
+
|
|
3081
|
+
# Repair
|
|
3082
|
+
|
|
3083
|
+
|
|
3084
|
+
## Properties
|
|
3085
|
+
|
|
3086
|
+
Name | Type | Description | Notes
|
|
3087
|
+
------------ | ------------- | ------------- | -------------
|
|
3088
|
+
**verify_checksums** | **bool** | Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default | [optional] [default to True]
|
|
3089
|
+
|
|
3090
|
+
## Example
|
|
3091
|
+
|
|
3092
|
+
```python
|
|
3093
|
+
from pulpcore.client.pulp_maven.models.repair import Repair
|
|
3094
|
+
|
|
3095
|
+
# TODO update the JSON string below
|
|
3096
|
+
json = "{}"
|
|
3097
|
+
# create an instance of Repair from a JSON string
|
|
3098
|
+
repair_instance = Repair.from_json(json)
|
|
3099
|
+
# print the JSON string representation of the object
|
|
3100
|
+
print(Repair.to_json())
|
|
3101
|
+
|
|
3102
|
+
# convert the object into a dict
|
|
3103
|
+
repair_dict = repair_instance.to_dict()
|
|
3104
|
+
# create an instance of Repair from a dict
|
|
3105
|
+
repair_from_dict = Repair.from_dict(repair_dict)
|
|
3106
|
+
```
|
|
3107
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
3108
|
+
|
|
3109
|
+
|
|
3110
|
+
# pulpcore.client.pulp_maven.RepositoriesMavenApi
|
|
3111
|
+
|
|
3112
|
+
All URIs are relative to *https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com*
|
|
3113
|
+
|
|
3114
|
+
Method | HTTP request | Description
|
|
3115
|
+
------------- | ------------- | -------------
|
|
3116
|
+
[**add_cached_content**](RepositoriesMavenApi.md#add_cached_content) | **POST** {maven_maven_repository_href}add_cached_content/ | Add cached content
|
|
3117
|
+
[**create**](RepositoriesMavenApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/repositories/maven/maven/ | Create a maven repository
|
|
3118
|
+
[**delete**](RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository
|
|
3119
|
+
[**list**](RepositoriesMavenApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/repositories/maven/maven/ | List maven repositorys
|
|
3120
|
+
[**partial_update**](RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository
|
|
3121
|
+
[**read**](RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository
|
|
3122
|
+
[**set_label**](RepositoriesMavenApi.md#set_label) | **POST** {maven_maven_repository_href}set_label/ | Set a label
|
|
3123
|
+
[**unset_label**](RepositoriesMavenApi.md#unset_label) | **POST** {maven_maven_repository_href}unset_label/ | Unset a label
|
|
3124
|
+
[**update**](RepositoriesMavenApi.md#update) | **PUT** {maven_maven_repository_href} | Update a maven repository
|
|
3125
|
+
|
|
3126
|
+
|
|
3127
|
+
# **add_cached_content**
|
|
3128
|
+
> AsyncOperationResponse add_cached_content(maven_maven_repository_href, repository_add_cached_content, x_task_diagnostics=x_task_diagnostics)
|
|
3129
|
+
|
|
3130
|
+
Add cached content
|
|
3131
|
+
|
|
3132
|
+
Trigger an asynchronous task to add cached content to a repository.
|
|
3133
|
+
|
|
3134
|
+
### Example
|
|
3135
|
+
|
|
3136
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
3137
|
+
* Basic Authentication (basicAuth):
|
|
3138
|
+
* Api Key Authentication (cookieAuth):
|
|
3139
|
+
|
|
3140
|
+
```python
|
|
3141
|
+
import pulpcore.client.pulp_maven
|
|
3142
|
+
from pulpcore.client.pulp_maven.models.async_operation_response import AsyncOperationResponse
|
|
3143
|
+
from pulpcore.client.pulp_maven.models.repository_add_cached_content import RepositoryAddCachedContent
|
|
3144
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
3145
|
+
from pprint import pprint
|
|
3146
|
+
|
|
3147
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
3148
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
3149
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3150
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
3151
|
+
)
|
|
3152
|
+
|
|
3153
|
+
# The client must configure the authentication and authorization parameters
|
|
3154
|
+
# in accordance with the API server security policy.
|
|
3155
|
+
# Examples for each auth method are provided below, use the example that
|
|
3156
|
+
# satisfies your auth use case.
|
|
3157
|
+
|
|
3158
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
3159
|
+
|
|
3160
|
+
# Configure HTTP basic authorization: basicAuth
|
|
3161
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3162
|
+
username = os.environ["USERNAME"],
|
|
3163
|
+
password = os.environ["PASSWORD"]
|
|
3164
|
+
)
|
|
3165
|
+
|
|
3166
|
+
# Configure API key authorization: cookieAuth
|
|
3167
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
3168
|
+
|
|
3169
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
3170
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
3171
|
+
|
|
3172
|
+
# Enter a context with an instance of the API client
|
|
3173
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
3174
|
+
# Create an instance of the API class
|
|
3175
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenApi(api_client)
|
|
3176
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # str |
|
|
3177
|
+
repository_add_cached_content = pulpcore.client.pulp_maven.RepositoryAddCachedContent() # RepositoryAddCachedContent |
|
|
3178
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
3179
|
+
|
|
3180
|
+
try:
|
|
3181
|
+
# Add cached content
|
|
3182
|
+
api_response = api_instance.add_cached_content(maven_maven_repository_href, repository_add_cached_content, x_task_diagnostics=x_task_diagnostics)
|
|
3183
|
+
print("The response of RepositoriesMavenApi->add_cached_content:\n")
|
|
3184
|
+
pprint(api_response)
|
|
3185
|
+
except Exception as e:
|
|
3186
|
+
print("Exception when calling RepositoriesMavenApi->add_cached_content: %s\n" % e)
|
|
3187
|
+
```
|
|
3188
|
+
|
|
3189
|
+
|
|
3190
|
+
|
|
3191
|
+
### Parameters
|
|
3192
|
+
|
|
3193
|
+
|
|
3194
|
+
Name | Type | Description | Notes
|
|
3195
|
+
------------- | ------------- | ------------- | -------------
|
|
3196
|
+
**maven_maven_repository_href** | **str**| |
|
|
3197
|
+
**repository_add_cached_content** | [**RepositoryAddCachedContent**](RepositoryAddCachedContent.md)| |
|
|
3198
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
3199
|
+
|
|
3200
|
+
### Return type
|
|
3201
|
+
|
|
3202
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
3203
|
+
|
|
3204
|
+
### Authorization
|
|
3205
|
+
|
|
3206
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
3207
|
+
|
|
3208
|
+
### HTTP request headers
|
|
3209
|
+
|
|
3210
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
3211
|
+
- **Accept**: application/json
|
|
3212
|
+
|
|
3213
|
+
### HTTP response details
|
|
3214
|
+
|
|
3215
|
+
| Status code | Description | Response headers |
|
|
3216
|
+
|-------------|-------------|------------------|
|
|
3217
|
+
**202** | | - |
|
|
3218
|
+
|
|
3219
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
3220
|
+
|
|
3221
|
+
# **create**
|
|
3222
|
+
> MavenMavenRepositoryResponse create(pulp_domain, maven_maven_repository, x_task_diagnostics=x_task_diagnostics)
|
|
3223
|
+
|
|
3224
|
+
Create a maven repository
|
|
3225
|
+
|
|
3226
|
+
A ViewSet for MavenRemote.
|
|
3227
|
+
|
|
3228
|
+
### Example
|
|
3229
|
+
|
|
3230
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
3231
|
+
* Basic Authentication (basicAuth):
|
|
3232
|
+
* Api Key Authentication (cookieAuth):
|
|
3233
|
+
|
|
3234
|
+
```python
|
|
3235
|
+
import pulpcore.client.pulp_maven
|
|
3236
|
+
from pulpcore.client.pulp_maven.models.maven_maven_repository import MavenMavenRepository
|
|
3237
|
+
from pulpcore.client.pulp_maven.models.maven_maven_repository_response import MavenMavenRepositoryResponse
|
|
3238
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
3239
|
+
from pprint import pprint
|
|
3240
|
+
|
|
3241
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
3242
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
3243
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3244
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
3245
|
+
)
|
|
3246
|
+
|
|
3247
|
+
# The client must configure the authentication and authorization parameters
|
|
3248
|
+
# in accordance with the API server security policy.
|
|
3249
|
+
# Examples for each auth method are provided below, use the example that
|
|
3250
|
+
# satisfies your auth use case.
|
|
3251
|
+
|
|
3252
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
3253
|
+
|
|
3254
|
+
# Configure HTTP basic authorization: basicAuth
|
|
3255
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3256
|
+
username = os.environ["USERNAME"],
|
|
3257
|
+
password = os.environ["PASSWORD"]
|
|
3258
|
+
)
|
|
3259
|
+
|
|
3260
|
+
# Configure API key authorization: cookieAuth
|
|
3261
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
3262
|
+
|
|
3263
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
3264
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
3265
|
+
|
|
3266
|
+
# Enter a context with an instance of the API client
|
|
3267
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
3268
|
+
# Create an instance of the API class
|
|
3269
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenApi(api_client)
|
|
3270
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
3271
|
+
maven_maven_repository = pulpcore.client.pulp_maven.MavenMavenRepository() # MavenMavenRepository |
|
|
3272
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
3273
|
+
|
|
3274
|
+
try:
|
|
3275
|
+
# Create a maven repository
|
|
3276
|
+
api_response = api_instance.create(pulp_domain, maven_maven_repository, x_task_diagnostics=x_task_diagnostics)
|
|
3277
|
+
print("The response of RepositoriesMavenApi->create:\n")
|
|
3278
|
+
pprint(api_response)
|
|
3279
|
+
except Exception as e:
|
|
3280
|
+
print("Exception when calling RepositoriesMavenApi->create: %s\n" % e)
|
|
3281
|
+
```
|
|
3282
|
+
|
|
3283
|
+
|
|
3284
|
+
|
|
3285
|
+
### Parameters
|
|
3286
|
+
|
|
3287
|
+
|
|
3288
|
+
Name | Type | Description | Notes
|
|
3289
|
+
------------- | ------------- | ------------- | -------------
|
|
3290
|
+
**pulp_domain** | **str**| |
|
|
3291
|
+
**maven_maven_repository** | [**MavenMavenRepository**](MavenMavenRepository.md)| |
|
|
3292
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
3293
|
+
|
|
3294
|
+
### Return type
|
|
3295
|
+
|
|
3296
|
+
[**MavenMavenRepositoryResponse**](MavenMavenRepositoryResponse.md)
|
|
3297
|
+
|
|
3298
|
+
### Authorization
|
|
3299
|
+
|
|
3300
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
3301
|
+
|
|
3302
|
+
### HTTP request headers
|
|
3303
|
+
|
|
3304
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
3305
|
+
- **Accept**: application/json
|
|
3306
|
+
|
|
3307
|
+
### HTTP response details
|
|
3308
|
+
|
|
3309
|
+
| Status code | Description | Response headers |
|
|
3310
|
+
|-------------|-------------|------------------|
|
|
3311
|
+
**201** | | - |
|
|
3312
|
+
|
|
3313
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
3314
|
+
|
|
3315
|
+
# **delete**
|
|
3316
|
+
> AsyncOperationResponse delete(maven_maven_repository_href, x_task_diagnostics=x_task_diagnostics)
|
|
3317
|
+
|
|
3318
|
+
Delete a maven repository
|
|
3319
|
+
|
|
3320
|
+
Trigger an asynchronous delete task
|
|
3321
|
+
|
|
3322
|
+
### Example
|
|
3323
|
+
|
|
3324
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
3325
|
+
* Basic Authentication (basicAuth):
|
|
3326
|
+
* Api Key Authentication (cookieAuth):
|
|
3327
|
+
|
|
3328
|
+
```python
|
|
3329
|
+
import pulpcore.client.pulp_maven
|
|
3330
|
+
from pulpcore.client.pulp_maven.models.async_operation_response import AsyncOperationResponse
|
|
3331
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
3332
|
+
from pprint import pprint
|
|
3333
|
+
|
|
3334
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
3335
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
3336
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3337
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
3338
|
+
)
|
|
3339
|
+
|
|
3340
|
+
# The client must configure the authentication and authorization parameters
|
|
3341
|
+
# in accordance with the API server security policy.
|
|
3342
|
+
# Examples for each auth method are provided below, use the example that
|
|
3343
|
+
# satisfies your auth use case.
|
|
3344
|
+
|
|
3345
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
3346
|
+
|
|
3347
|
+
# Configure HTTP basic authorization: basicAuth
|
|
3348
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3349
|
+
username = os.environ["USERNAME"],
|
|
3350
|
+
password = os.environ["PASSWORD"]
|
|
3351
|
+
)
|
|
3352
|
+
|
|
3353
|
+
# Configure API key authorization: cookieAuth
|
|
3354
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
3355
|
+
|
|
3356
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
3357
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
3358
|
+
|
|
3359
|
+
# Enter a context with an instance of the API client
|
|
3360
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
3361
|
+
# Create an instance of the API class
|
|
3362
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenApi(api_client)
|
|
3363
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # str |
|
|
3364
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
3365
|
+
|
|
3366
|
+
try:
|
|
3367
|
+
# Delete a maven repository
|
|
3368
|
+
api_response = api_instance.delete(maven_maven_repository_href, x_task_diagnostics=x_task_diagnostics)
|
|
3369
|
+
print("The response of RepositoriesMavenApi->delete:\n")
|
|
3370
|
+
pprint(api_response)
|
|
3371
|
+
except Exception as e:
|
|
3372
|
+
print("Exception when calling RepositoriesMavenApi->delete: %s\n" % e)
|
|
3373
|
+
```
|
|
3374
|
+
|
|
3375
|
+
|
|
3376
|
+
|
|
3377
|
+
### Parameters
|
|
3378
|
+
|
|
3379
|
+
|
|
3380
|
+
Name | Type | Description | Notes
|
|
3381
|
+
------------- | ------------- | ------------- | -------------
|
|
3382
|
+
**maven_maven_repository_href** | **str**| |
|
|
3383
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
3384
|
+
|
|
3385
|
+
### Return type
|
|
3386
|
+
|
|
3387
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
3388
|
+
|
|
3389
|
+
### Authorization
|
|
3390
|
+
|
|
3391
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
3392
|
+
|
|
3393
|
+
### HTTP request headers
|
|
3394
|
+
|
|
3395
|
+
- **Content-Type**: Not defined
|
|
3396
|
+
- **Accept**: application/json
|
|
3397
|
+
|
|
3398
|
+
### HTTP response details
|
|
3399
|
+
|
|
3400
|
+
| Status code | Description | Response headers |
|
|
3401
|
+
|-------------|-------------|------------------|
|
|
3402
|
+
**202** | | - |
|
|
3403
|
+
|
|
3404
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
3405
|
+
|
|
3406
|
+
# **list**
|
|
3407
|
+
> PaginatedmavenMavenRepositoryResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, latest_with_content=latest_with_content, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, remote=remote, retain_repo_versions=retain_repo_versions, retain_repo_versions__gt=retain_repo_versions__gt, retain_repo_versions__gte=retain_repo_versions__gte, retain_repo_versions__isnull=retain_repo_versions__isnull, retain_repo_versions__lt=retain_repo_versions__lt, retain_repo_versions__lte=retain_repo_versions__lte, retain_repo_versions__ne=retain_repo_versions__ne, retain_repo_versions__range=retain_repo_versions__range, with_content=with_content, fields=fields, exclude_fields=exclude_fields)
|
|
3408
|
+
|
|
3409
|
+
List maven repositorys
|
|
3410
|
+
|
|
3411
|
+
A ViewSet for MavenRemote.
|
|
3412
|
+
|
|
3413
|
+
### Example
|
|
3414
|
+
|
|
3415
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
3416
|
+
* Basic Authentication (basicAuth):
|
|
3417
|
+
* Api Key Authentication (cookieAuth):
|
|
3418
|
+
|
|
3419
|
+
```python
|
|
3420
|
+
import pulpcore.client.pulp_maven
|
|
3421
|
+
from pulpcore.client.pulp_maven.models.paginatedmaven_maven_repository_response_list import PaginatedmavenMavenRepositoryResponseList
|
|
3422
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
3423
|
+
from pprint import pprint
|
|
3424
|
+
|
|
3425
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
3426
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
3427
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3428
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
3429
|
+
)
|
|
3430
|
+
|
|
3431
|
+
# The client must configure the authentication and authorization parameters
|
|
3432
|
+
# in accordance with the API server security policy.
|
|
3433
|
+
# Examples for each auth method are provided below, use the example that
|
|
3434
|
+
# satisfies your auth use case.
|
|
3435
|
+
|
|
3436
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
3437
|
+
|
|
3438
|
+
# Configure HTTP basic authorization: basicAuth
|
|
3439
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3440
|
+
username = os.environ["USERNAME"],
|
|
3441
|
+
password = os.environ["PASSWORD"]
|
|
3442
|
+
)
|
|
3443
|
+
|
|
3444
|
+
# Configure API key authorization: cookieAuth
|
|
3445
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
3446
|
+
|
|
3447
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
3448
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
3449
|
+
|
|
3450
|
+
# Enter a context with an instance of the API client
|
|
3451
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
3452
|
+
# Create an instance of the API class
|
|
3453
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenApi(api_client)
|
|
3454
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
3455
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
3456
|
+
latest_with_content = 'latest_with_content_example' # str | Content Unit referenced by HREF/PRN (optional)
|
|
3457
|
+
limit = 56 # int | Number of results to return per page. (optional)
|
|
3458
|
+
name = 'name_example' # str | Filter results where name matches value (optional)
|
|
3459
|
+
name__contains = 'name__contains_example' # str | Filter results where name contains value (optional)
|
|
3460
|
+
name__icontains = 'name__icontains_example' # str | Filter results where name contains value (optional)
|
|
3461
|
+
name__iexact = 'name__iexact_example' # str | Filter results where name matches value (optional)
|
|
3462
|
+
name__in = ['name__in_example'] # List[str] | Filter results where name is in a comma-separated list of values (optional)
|
|
3463
|
+
name__iregex = 'name__iregex_example' # str | Filter results where name matches regex value (optional)
|
|
3464
|
+
name__istartswith = 'name__istartswith_example' # str | Filter results where name starts with value (optional)
|
|
3465
|
+
name__regex = 'name__regex_example' # str | Filter results where name matches regex value (optional)
|
|
3466
|
+
name__startswith = 'name__startswith_example' # str | Filter results where name starts with value (optional)
|
|
3467
|
+
offset = 56 # int | The initial index from which to return the results. (optional)
|
|
3468
|
+
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
|
|
3469
|
+
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
3470
|
+
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
3471
|
+
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
3472
|
+
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
|
|
3473
|
+
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
|
|
3474
|
+
remote = 'remote_example' # str | Foreign Key referenced by HREF (optional)
|
|
3475
|
+
retain_repo_versions = 56 # int | Filter results where retain_repo_versions matches value (optional)
|
|
3476
|
+
retain_repo_versions__gt = 56 # int | Filter results where retain_repo_versions is greater than value (optional)
|
|
3477
|
+
retain_repo_versions__gte = 56 # int | Filter results where retain_repo_versions is greater than or equal to value (optional)
|
|
3478
|
+
retain_repo_versions__isnull = True # bool | Filter results where retain_repo_versions has a null value (optional)
|
|
3479
|
+
retain_repo_versions__lt = 56 # int | Filter results where retain_repo_versions is less than value (optional)
|
|
3480
|
+
retain_repo_versions__lte = 56 # int | Filter results where retain_repo_versions is less than or equal to value (optional)
|
|
3481
|
+
retain_repo_versions__ne = 56 # int | Filter results where retain_repo_versions not equal to value (optional)
|
|
3482
|
+
retain_repo_versions__range = [56] # List[int] | Filter results where retain_repo_versions is between two comma separated values (optional)
|
|
3483
|
+
with_content = 'with_content_example' # str | Content Unit referenced by HREF/PRN (optional)
|
|
3484
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
3485
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
3486
|
+
|
|
3487
|
+
try:
|
|
3488
|
+
# List maven repositorys
|
|
3489
|
+
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, latest_with_content=latest_with_content, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, remote=remote, retain_repo_versions=retain_repo_versions, retain_repo_versions__gt=retain_repo_versions__gt, retain_repo_versions__gte=retain_repo_versions__gte, retain_repo_versions__isnull=retain_repo_versions__isnull, retain_repo_versions__lt=retain_repo_versions__lt, retain_repo_versions__lte=retain_repo_versions__lte, retain_repo_versions__ne=retain_repo_versions__ne, retain_repo_versions__range=retain_repo_versions__range, with_content=with_content, fields=fields, exclude_fields=exclude_fields)
|
|
3490
|
+
print("The response of RepositoriesMavenApi->list:\n")
|
|
3491
|
+
pprint(api_response)
|
|
3492
|
+
except Exception as e:
|
|
3493
|
+
print("Exception when calling RepositoriesMavenApi->list: %s\n" % e)
|
|
3494
|
+
```
|
|
3495
|
+
|
|
3496
|
+
|
|
3497
|
+
|
|
3498
|
+
### Parameters
|
|
3499
|
+
|
|
3500
|
+
|
|
3501
|
+
Name | Type | Description | Notes
|
|
3502
|
+
------------- | ------------- | ------------- | -------------
|
|
3503
|
+
**pulp_domain** | **str**| |
|
|
3504
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
3505
|
+
**latest_with_content** | **str**| Content Unit referenced by HREF/PRN | [optional]
|
|
3506
|
+
**limit** | **int**| Number of results to return per page. | [optional]
|
|
3507
|
+
**name** | **str**| Filter results where name matches value | [optional]
|
|
3508
|
+
**name__contains** | **str**| Filter results where name contains value | [optional]
|
|
3509
|
+
**name__icontains** | **str**| Filter results where name contains value | [optional]
|
|
3510
|
+
**name__iexact** | **str**| Filter results where name matches value | [optional]
|
|
3511
|
+
**name__in** | [**List[str]**](str.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
3512
|
+
**name__iregex** | **str**| Filter results where name matches regex value | [optional]
|
|
3513
|
+
**name__istartswith** | **str**| Filter results where name starts with value | [optional]
|
|
3514
|
+
**name__regex** | **str**| Filter results where name matches regex value | [optional]
|
|
3515
|
+
**name__startswith** | **str**| Filter results where name starts with value | [optional]
|
|
3516
|
+
**offset** | **int**| The initial index from which to return the results. | [optional]
|
|
3517
|
+
**ordering** | [**List[str]**](str.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
|
3518
|
+
**prn__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
3519
|
+
**pulp_href__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
3520
|
+
**pulp_id__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
3521
|
+
**pulp_label_select** | **str**| Filter labels by search string | [optional]
|
|
3522
|
+
**q** | **str**| Filter results by using NOT, AND and OR operations on other filters | [optional]
|
|
3523
|
+
**remote** | **str**| Foreign Key referenced by HREF | [optional]
|
|
3524
|
+
**retain_repo_versions** | **int**| Filter results where retain_repo_versions matches value | [optional]
|
|
3525
|
+
**retain_repo_versions__gt** | **int**| Filter results where retain_repo_versions is greater than value | [optional]
|
|
3526
|
+
**retain_repo_versions__gte** | **int**| Filter results where retain_repo_versions is greater than or equal to value | [optional]
|
|
3527
|
+
**retain_repo_versions__isnull** | **bool**| Filter results where retain_repo_versions has a null value | [optional]
|
|
3528
|
+
**retain_repo_versions__lt** | **int**| Filter results where retain_repo_versions is less than value | [optional]
|
|
3529
|
+
**retain_repo_versions__lte** | **int**| Filter results where retain_repo_versions is less than or equal to value | [optional]
|
|
3530
|
+
**retain_repo_versions__ne** | **int**| Filter results where retain_repo_versions not equal to value | [optional]
|
|
3531
|
+
**retain_repo_versions__range** | [**List[int]**](int.md)| Filter results where retain_repo_versions is between two comma separated values | [optional]
|
|
3532
|
+
**with_content** | **str**| Content Unit referenced by HREF/PRN | [optional]
|
|
3533
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
3534
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
3535
|
+
|
|
3536
|
+
### Return type
|
|
3537
|
+
|
|
3538
|
+
[**PaginatedmavenMavenRepositoryResponseList**](PaginatedmavenMavenRepositoryResponseList.md)
|
|
3539
|
+
|
|
3540
|
+
### Authorization
|
|
3541
|
+
|
|
3542
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
3543
|
+
|
|
3544
|
+
### HTTP request headers
|
|
3545
|
+
|
|
3546
|
+
- **Content-Type**: Not defined
|
|
3547
|
+
- **Accept**: application/json
|
|
3548
|
+
|
|
3549
|
+
### HTTP response details
|
|
3550
|
+
|
|
3551
|
+
| Status code | Description | Response headers |
|
|
3552
|
+
|-------------|-------------|------------------|
|
|
3553
|
+
**200** | | - |
|
|
3554
|
+
|
|
3555
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
3556
|
+
|
|
3557
|
+
# **partial_update**
|
|
3558
|
+
> MavenMavenRepositoryResponse partial_update(maven_maven_repository_href, patchedmaven_maven_repository, x_task_diagnostics=x_task_diagnostics)
|
|
3559
|
+
|
|
3560
|
+
Update a maven repository
|
|
3561
|
+
|
|
3562
|
+
Update the entity partially and trigger an asynchronous task if necessary
|
|
3563
|
+
|
|
3564
|
+
### Example
|
|
3565
|
+
|
|
3566
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
3567
|
+
* Basic Authentication (basicAuth):
|
|
3568
|
+
* Api Key Authentication (cookieAuth):
|
|
3569
|
+
|
|
3570
|
+
```python
|
|
3571
|
+
import pulpcore.client.pulp_maven
|
|
3572
|
+
from pulpcore.client.pulp_maven.models.maven_maven_repository_response import MavenMavenRepositoryResponse
|
|
3573
|
+
from pulpcore.client.pulp_maven.models.patchedmaven_maven_repository import PatchedmavenMavenRepository
|
|
3574
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
3575
|
+
from pprint import pprint
|
|
3576
|
+
|
|
3577
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
3578
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
3579
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3580
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
3581
|
+
)
|
|
3582
|
+
|
|
3583
|
+
# The client must configure the authentication and authorization parameters
|
|
3584
|
+
# in accordance with the API server security policy.
|
|
3585
|
+
# Examples for each auth method are provided below, use the example that
|
|
3586
|
+
# satisfies your auth use case.
|
|
3587
|
+
|
|
3588
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
3589
|
+
|
|
3590
|
+
# Configure HTTP basic authorization: basicAuth
|
|
3591
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3592
|
+
username = os.environ["USERNAME"],
|
|
3593
|
+
password = os.environ["PASSWORD"]
|
|
3594
|
+
)
|
|
3595
|
+
|
|
3596
|
+
# Configure API key authorization: cookieAuth
|
|
3597
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
3598
|
+
|
|
3599
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
3600
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
3601
|
+
|
|
3602
|
+
# Enter a context with an instance of the API client
|
|
3603
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
3604
|
+
# Create an instance of the API class
|
|
3605
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenApi(api_client)
|
|
3606
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # str |
|
|
3607
|
+
patchedmaven_maven_repository = pulpcore.client.pulp_maven.PatchedmavenMavenRepository() # PatchedmavenMavenRepository |
|
|
3608
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
3609
|
+
|
|
3610
|
+
try:
|
|
3611
|
+
# Update a maven repository
|
|
3612
|
+
api_response = api_instance.partial_update(maven_maven_repository_href, patchedmaven_maven_repository, x_task_diagnostics=x_task_diagnostics)
|
|
3613
|
+
print("The response of RepositoriesMavenApi->partial_update:\n")
|
|
3614
|
+
pprint(api_response)
|
|
3615
|
+
except Exception as e:
|
|
3616
|
+
print("Exception when calling RepositoriesMavenApi->partial_update: %s\n" % e)
|
|
3617
|
+
```
|
|
3618
|
+
|
|
3619
|
+
|
|
3620
|
+
|
|
3621
|
+
### Parameters
|
|
3622
|
+
|
|
3623
|
+
|
|
3624
|
+
Name | Type | Description | Notes
|
|
3625
|
+
------------- | ------------- | ------------- | -------------
|
|
3626
|
+
**maven_maven_repository_href** | **str**| |
|
|
3627
|
+
**patchedmaven_maven_repository** | [**PatchedmavenMavenRepository**](PatchedmavenMavenRepository.md)| |
|
|
3628
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
3629
|
+
|
|
3630
|
+
### Return type
|
|
3631
|
+
|
|
3632
|
+
[**MavenMavenRepositoryResponse**](MavenMavenRepositoryResponse.md)
|
|
3633
|
+
|
|
3634
|
+
### Authorization
|
|
3635
|
+
|
|
3636
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
3637
|
+
|
|
3638
|
+
### HTTP request headers
|
|
3639
|
+
|
|
3640
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
3641
|
+
- **Accept**: application/json
|
|
3642
|
+
|
|
3643
|
+
### HTTP response details
|
|
3644
|
+
|
|
3645
|
+
| Status code | Description | Response headers |
|
|
3646
|
+
|-------------|-------------|------------------|
|
|
3647
|
+
**200** | | - |
|
|
3648
|
+
**202** | | - |
|
|
3649
|
+
|
|
3650
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
3651
|
+
|
|
3652
|
+
# **read**
|
|
3653
|
+
> MavenMavenRepositoryResponse read(maven_maven_repository_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
3654
|
+
|
|
3655
|
+
Inspect a maven repository
|
|
3656
|
+
|
|
3657
|
+
A ViewSet for MavenRemote.
|
|
3658
|
+
|
|
3659
|
+
### Example
|
|
3660
|
+
|
|
3661
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
3662
|
+
* Basic Authentication (basicAuth):
|
|
3663
|
+
* Api Key Authentication (cookieAuth):
|
|
3664
|
+
|
|
3665
|
+
```python
|
|
3666
|
+
import pulpcore.client.pulp_maven
|
|
3667
|
+
from pulpcore.client.pulp_maven.models.maven_maven_repository_response import MavenMavenRepositoryResponse
|
|
3668
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
3669
|
+
from pprint import pprint
|
|
3670
|
+
|
|
3671
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
3672
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
3673
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3674
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
3675
|
+
)
|
|
3676
|
+
|
|
3677
|
+
# The client must configure the authentication and authorization parameters
|
|
3678
|
+
# in accordance with the API server security policy.
|
|
3679
|
+
# Examples for each auth method are provided below, use the example that
|
|
3680
|
+
# satisfies your auth use case.
|
|
3681
|
+
|
|
3682
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
3683
|
+
|
|
3684
|
+
# Configure HTTP basic authorization: basicAuth
|
|
3685
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3686
|
+
username = os.environ["USERNAME"],
|
|
3687
|
+
password = os.environ["PASSWORD"]
|
|
3688
|
+
)
|
|
3689
|
+
|
|
3690
|
+
# Configure API key authorization: cookieAuth
|
|
3691
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
3692
|
+
|
|
3693
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
3694
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
3695
|
+
|
|
3696
|
+
# Enter a context with an instance of the API client
|
|
3697
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
3698
|
+
# Create an instance of the API class
|
|
3699
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenApi(api_client)
|
|
3700
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # str |
|
|
3701
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
3702
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
3703
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
3704
|
+
|
|
3705
|
+
try:
|
|
3706
|
+
# Inspect a maven repository
|
|
3707
|
+
api_response = api_instance.read(maven_maven_repository_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
3708
|
+
print("The response of RepositoriesMavenApi->read:\n")
|
|
3709
|
+
pprint(api_response)
|
|
3710
|
+
except Exception as e:
|
|
3711
|
+
print("Exception when calling RepositoriesMavenApi->read: %s\n" % e)
|
|
3712
|
+
```
|
|
3713
|
+
|
|
3714
|
+
|
|
3715
|
+
|
|
3716
|
+
### Parameters
|
|
3717
|
+
|
|
3718
|
+
|
|
3719
|
+
Name | Type | Description | Notes
|
|
3720
|
+
------------- | ------------- | ------------- | -------------
|
|
3721
|
+
**maven_maven_repository_href** | **str**| |
|
|
3722
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
3723
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
3724
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
3725
|
+
|
|
3726
|
+
### Return type
|
|
3727
|
+
|
|
3728
|
+
[**MavenMavenRepositoryResponse**](MavenMavenRepositoryResponse.md)
|
|
3729
|
+
|
|
3730
|
+
### Authorization
|
|
3731
|
+
|
|
3732
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
3733
|
+
|
|
3734
|
+
### HTTP request headers
|
|
3735
|
+
|
|
3736
|
+
- **Content-Type**: Not defined
|
|
3737
|
+
- **Accept**: application/json
|
|
3738
|
+
|
|
3739
|
+
### HTTP response details
|
|
3740
|
+
|
|
3741
|
+
| Status code | Description | Response headers |
|
|
3742
|
+
|-------------|-------------|------------------|
|
|
3743
|
+
**200** | | - |
|
|
3744
|
+
|
|
3745
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
3746
|
+
|
|
3747
|
+
# **set_label**
|
|
3748
|
+
> SetLabelResponse set_label(maven_maven_repository_href, set_label, x_task_diagnostics=x_task_diagnostics)
|
|
3749
|
+
|
|
3750
|
+
Set a label
|
|
3751
|
+
|
|
3752
|
+
Set a single pulp_label on the object to a specific value or null.
|
|
3753
|
+
|
|
3754
|
+
### Example
|
|
3755
|
+
|
|
3756
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
3757
|
+
* Basic Authentication (basicAuth):
|
|
3758
|
+
* Api Key Authentication (cookieAuth):
|
|
3759
|
+
|
|
3760
|
+
```python
|
|
3761
|
+
import pulpcore.client.pulp_maven
|
|
3762
|
+
from pulpcore.client.pulp_maven.models.set_label import SetLabel
|
|
3763
|
+
from pulpcore.client.pulp_maven.models.set_label_response import SetLabelResponse
|
|
3764
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
3765
|
+
from pprint import pprint
|
|
3766
|
+
|
|
3767
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
3768
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
3769
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3770
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
3771
|
+
)
|
|
3772
|
+
|
|
3773
|
+
# The client must configure the authentication and authorization parameters
|
|
3774
|
+
# in accordance with the API server security policy.
|
|
3775
|
+
# Examples for each auth method are provided below, use the example that
|
|
3776
|
+
# satisfies your auth use case.
|
|
3777
|
+
|
|
3778
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
3779
|
+
|
|
3780
|
+
# Configure HTTP basic authorization: basicAuth
|
|
3781
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3782
|
+
username = os.environ["USERNAME"],
|
|
3783
|
+
password = os.environ["PASSWORD"]
|
|
3784
|
+
)
|
|
3785
|
+
|
|
3786
|
+
# Configure API key authorization: cookieAuth
|
|
3787
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
3788
|
+
|
|
3789
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
3790
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
3791
|
+
|
|
3792
|
+
# Enter a context with an instance of the API client
|
|
3793
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
3794
|
+
# Create an instance of the API class
|
|
3795
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenApi(api_client)
|
|
3796
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # str |
|
|
3797
|
+
set_label = pulpcore.client.pulp_maven.SetLabel() # SetLabel |
|
|
3798
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
3799
|
+
|
|
3800
|
+
try:
|
|
3801
|
+
# Set a label
|
|
3802
|
+
api_response = api_instance.set_label(maven_maven_repository_href, set_label, x_task_diagnostics=x_task_diagnostics)
|
|
3803
|
+
print("The response of RepositoriesMavenApi->set_label:\n")
|
|
3804
|
+
pprint(api_response)
|
|
3805
|
+
except Exception as e:
|
|
3806
|
+
print("Exception when calling RepositoriesMavenApi->set_label: %s\n" % e)
|
|
3807
|
+
```
|
|
3808
|
+
|
|
3809
|
+
|
|
3810
|
+
|
|
3811
|
+
### Parameters
|
|
3812
|
+
|
|
3813
|
+
|
|
3814
|
+
Name | Type | Description | Notes
|
|
3815
|
+
------------- | ------------- | ------------- | -------------
|
|
3816
|
+
**maven_maven_repository_href** | **str**| |
|
|
3817
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
|
3818
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
3819
|
+
|
|
3820
|
+
### Return type
|
|
3821
|
+
|
|
3822
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
|
3823
|
+
|
|
3824
|
+
### Authorization
|
|
3825
|
+
|
|
3826
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
3827
|
+
|
|
3828
|
+
### HTTP request headers
|
|
3829
|
+
|
|
3830
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
3831
|
+
- **Accept**: application/json
|
|
3832
|
+
|
|
3833
|
+
### HTTP response details
|
|
3834
|
+
|
|
3835
|
+
| Status code | Description | Response headers |
|
|
3836
|
+
|-------------|-------------|------------------|
|
|
3837
|
+
**201** | | - |
|
|
3838
|
+
|
|
3839
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
3840
|
+
|
|
3841
|
+
# **unset_label**
|
|
3842
|
+
> UnsetLabelResponse unset_label(maven_maven_repository_href, unset_label, x_task_diagnostics=x_task_diagnostics)
|
|
3843
|
+
|
|
3844
|
+
Unset a label
|
|
3845
|
+
|
|
3846
|
+
Unset a single pulp_label on the object.
|
|
3847
|
+
|
|
3848
|
+
### Example
|
|
3849
|
+
|
|
3850
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
3851
|
+
* Basic Authentication (basicAuth):
|
|
3852
|
+
* Api Key Authentication (cookieAuth):
|
|
3853
|
+
|
|
3854
|
+
```python
|
|
3855
|
+
import pulpcore.client.pulp_maven
|
|
3856
|
+
from pulpcore.client.pulp_maven.models.unset_label import UnsetLabel
|
|
3857
|
+
from pulpcore.client.pulp_maven.models.unset_label_response import UnsetLabelResponse
|
|
3858
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
3859
|
+
from pprint import pprint
|
|
3860
|
+
|
|
3861
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
3862
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
3863
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3864
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
3865
|
+
)
|
|
3866
|
+
|
|
3867
|
+
# The client must configure the authentication and authorization parameters
|
|
3868
|
+
# in accordance with the API server security policy.
|
|
3869
|
+
# Examples for each auth method are provided below, use the example that
|
|
3870
|
+
# satisfies your auth use case.
|
|
3871
|
+
|
|
3872
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
3873
|
+
|
|
3874
|
+
# Configure HTTP basic authorization: basicAuth
|
|
3875
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3876
|
+
username = os.environ["USERNAME"],
|
|
3877
|
+
password = os.environ["PASSWORD"]
|
|
3878
|
+
)
|
|
3879
|
+
|
|
3880
|
+
# Configure API key authorization: cookieAuth
|
|
3881
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
3882
|
+
|
|
3883
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
3884
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
3885
|
+
|
|
3886
|
+
# Enter a context with an instance of the API client
|
|
3887
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
3888
|
+
# Create an instance of the API class
|
|
3889
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenApi(api_client)
|
|
3890
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # str |
|
|
3891
|
+
unset_label = pulpcore.client.pulp_maven.UnsetLabel() # UnsetLabel |
|
|
3892
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
3893
|
+
|
|
3894
|
+
try:
|
|
3895
|
+
# Unset a label
|
|
3896
|
+
api_response = api_instance.unset_label(maven_maven_repository_href, unset_label, x_task_diagnostics=x_task_diagnostics)
|
|
3897
|
+
print("The response of RepositoriesMavenApi->unset_label:\n")
|
|
3898
|
+
pprint(api_response)
|
|
3899
|
+
except Exception as e:
|
|
3900
|
+
print("Exception when calling RepositoriesMavenApi->unset_label: %s\n" % e)
|
|
3901
|
+
```
|
|
3902
|
+
|
|
3903
|
+
|
|
3904
|
+
|
|
3905
|
+
### Parameters
|
|
3906
|
+
|
|
3907
|
+
|
|
3908
|
+
Name | Type | Description | Notes
|
|
3909
|
+
------------- | ------------- | ------------- | -------------
|
|
3910
|
+
**maven_maven_repository_href** | **str**| |
|
|
3911
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
|
3912
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
3913
|
+
|
|
3914
|
+
### Return type
|
|
3915
|
+
|
|
3916
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
|
3917
|
+
|
|
3918
|
+
### Authorization
|
|
3919
|
+
|
|
3920
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
3921
|
+
|
|
3922
|
+
### HTTP request headers
|
|
3923
|
+
|
|
3924
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
3925
|
+
- **Accept**: application/json
|
|
3926
|
+
|
|
3927
|
+
### HTTP response details
|
|
3928
|
+
|
|
3929
|
+
| Status code | Description | Response headers |
|
|
3930
|
+
|-------------|-------------|------------------|
|
|
3931
|
+
**201** | | - |
|
|
3932
|
+
|
|
3933
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
3934
|
+
|
|
3935
|
+
# **update**
|
|
3936
|
+
> MavenMavenRepositoryResponse update(maven_maven_repository_href, maven_maven_repository, x_task_diagnostics=x_task_diagnostics)
|
|
3937
|
+
|
|
3938
|
+
Update a maven repository
|
|
3939
|
+
|
|
3940
|
+
Update the entity and trigger an asynchronous task if necessary
|
|
3941
|
+
|
|
3942
|
+
### Example
|
|
3943
|
+
|
|
3944
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
3945
|
+
* Basic Authentication (basicAuth):
|
|
3946
|
+
* Api Key Authentication (cookieAuth):
|
|
3947
|
+
|
|
3948
|
+
```python
|
|
3949
|
+
import pulpcore.client.pulp_maven
|
|
3950
|
+
from pulpcore.client.pulp_maven.models.maven_maven_repository import MavenMavenRepository
|
|
3951
|
+
from pulpcore.client.pulp_maven.models.maven_maven_repository_response import MavenMavenRepositoryResponse
|
|
3952
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
3953
|
+
from pprint import pprint
|
|
3954
|
+
|
|
3955
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
3956
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
3957
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3958
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
3959
|
+
)
|
|
3960
|
+
|
|
3961
|
+
# The client must configure the authentication and authorization parameters
|
|
3962
|
+
# in accordance with the API server security policy.
|
|
3963
|
+
# Examples for each auth method are provided below, use the example that
|
|
3964
|
+
# satisfies your auth use case.
|
|
3965
|
+
|
|
3966
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
3967
|
+
|
|
3968
|
+
# Configure HTTP basic authorization: basicAuth
|
|
3969
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
3970
|
+
username = os.environ["USERNAME"],
|
|
3971
|
+
password = os.environ["PASSWORD"]
|
|
3972
|
+
)
|
|
3973
|
+
|
|
3974
|
+
# Configure API key authorization: cookieAuth
|
|
3975
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
3976
|
+
|
|
3977
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
3978
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
3979
|
+
|
|
3980
|
+
# Enter a context with an instance of the API client
|
|
3981
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
3982
|
+
# Create an instance of the API class
|
|
3983
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenApi(api_client)
|
|
3984
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # str |
|
|
3985
|
+
maven_maven_repository = pulpcore.client.pulp_maven.MavenMavenRepository() # MavenMavenRepository |
|
|
3986
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
3987
|
+
|
|
3988
|
+
try:
|
|
3989
|
+
# Update a maven repository
|
|
3990
|
+
api_response = api_instance.update(maven_maven_repository_href, maven_maven_repository, x_task_diagnostics=x_task_diagnostics)
|
|
3991
|
+
print("The response of RepositoriesMavenApi->update:\n")
|
|
3992
|
+
pprint(api_response)
|
|
3993
|
+
except Exception as e:
|
|
3994
|
+
print("Exception when calling RepositoriesMavenApi->update: %s\n" % e)
|
|
3995
|
+
```
|
|
3996
|
+
|
|
3997
|
+
|
|
3998
|
+
|
|
3999
|
+
### Parameters
|
|
4000
|
+
|
|
4001
|
+
|
|
4002
|
+
Name | Type | Description | Notes
|
|
4003
|
+
------------- | ------------- | ------------- | -------------
|
|
4004
|
+
**maven_maven_repository_href** | **str**| |
|
|
4005
|
+
**maven_maven_repository** | [**MavenMavenRepository**](MavenMavenRepository.md)| |
|
|
4006
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
4007
|
+
|
|
4008
|
+
### Return type
|
|
4009
|
+
|
|
4010
|
+
[**MavenMavenRepositoryResponse**](MavenMavenRepositoryResponse.md)
|
|
4011
|
+
|
|
4012
|
+
### Authorization
|
|
4013
|
+
|
|
4014
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
4015
|
+
|
|
4016
|
+
### HTTP request headers
|
|
4017
|
+
|
|
4018
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
4019
|
+
- **Accept**: application/json
|
|
4020
|
+
|
|
4021
|
+
### HTTP response details
|
|
4022
|
+
|
|
4023
|
+
| Status code | Description | Response headers |
|
|
4024
|
+
|-------------|-------------|------------------|
|
|
4025
|
+
**200** | | - |
|
|
4026
|
+
**202** | | - |
|
|
4027
|
+
|
|
4028
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
4029
|
+
|
|
4030
|
+
# pulpcore.client.pulp_maven.RepositoriesMavenVersionsApi
|
|
4031
|
+
|
|
4032
|
+
All URIs are relative to *https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com*
|
|
4033
|
+
|
|
4034
|
+
Method | HTTP request | Description
|
|
4035
|
+
------------- | ------------- | -------------
|
|
4036
|
+
[**delete**](RepositoriesMavenVersionsApi.md#delete) | **DELETE** {maven_maven_repository_version_href} | Delete a repository version
|
|
4037
|
+
[**list**](RepositoriesMavenVersionsApi.md#list) | **GET** {maven_maven_repository_href}versions/ | List repository versions
|
|
4038
|
+
[**read**](RepositoriesMavenVersionsApi.md#read) | **GET** {maven_maven_repository_version_href} | Inspect a repository version
|
|
4039
|
+
[**repair**](RepositoriesMavenVersionsApi.md#repair) | **POST** {maven_maven_repository_version_href}repair/ |
|
|
4040
|
+
|
|
4041
|
+
|
|
4042
|
+
# **delete**
|
|
4043
|
+
> AsyncOperationResponse delete(maven_maven_repository_version_href, x_task_diagnostics=x_task_diagnostics)
|
|
4044
|
+
|
|
4045
|
+
Delete a repository version
|
|
4046
|
+
|
|
4047
|
+
Trigger an asynchronous task to delete a repository version.
|
|
4048
|
+
|
|
4049
|
+
### Example
|
|
4050
|
+
|
|
4051
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
4052
|
+
* Basic Authentication (basicAuth):
|
|
4053
|
+
* Api Key Authentication (cookieAuth):
|
|
4054
|
+
|
|
4055
|
+
```python
|
|
4056
|
+
import pulpcore.client.pulp_maven
|
|
4057
|
+
from pulpcore.client.pulp_maven.models.async_operation_response import AsyncOperationResponse
|
|
4058
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
4059
|
+
from pprint import pprint
|
|
4060
|
+
|
|
4061
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
4062
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
4063
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
4064
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
4065
|
+
)
|
|
4066
|
+
|
|
4067
|
+
# The client must configure the authentication and authorization parameters
|
|
4068
|
+
# in accordance with the API server security policy.
|
|
4069
|
+
# Examples for each auth method are provided below, use the example that
|
|
4070
|
+
# satisfies your auth use case.
|
|
4071
|
+
|
|
4072
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
4073
|
+
|
|
4074
|
+
# Configure HTTP basic authorization: basicAuth
|
|
4075
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
4076
|
+
username = os.environ["USERNAME"],
|
|
4077
|
+
password = os.environ["PASSWORD"]
|
|
4078
|
+
)
|
|
4079
|
+
|
|
4080
|
+
# Configure API key authorization: cookieAuth
|
|
4081
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
4082
|
+
|
|
4083
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
4084
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
4085
|
+
|
|
4086
|
+
# Enter a context with an instance of the API client
|
|
4087
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
4088
|
+
# Create an instance of the API class
|
|
4089
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenVersionsApi(api_client)
|
|
4090
|
+
maven_maven_repository_version_href = 'maven_maven_repository_version_href_example' # str |
|
|
4091
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
4092
|
+
|
|
4093
|
+
try:
|
|
4094
|
+
# Delete a repository version
|
|
4095
|
+
api_response = api_instance.delete(maven_maven_repository_version_href, x_task_diagnostics=x_task_diagnostics)
|
|
4096
|
+
print("The response of RepositoriesMavenVersionsApi->delete:\n")
|
|
4097
|
+
pprint(api_response)
|
|
4098
|
+
except Exception as e:
|
|
4099
|
+
print("Exception when calling RepositoriesMavenVersionsApi->delete: %s\n" % e)
|
|
4100
|
+
```
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
|
|
4104
|
+
### Parameters
|
|
4105
|
+
|
|
4106
|
+
|
|
4107
|
+
Name | Type | Description | Notes
|
|
4108
|
+
------------- | ------------- | ------------- | -------------
|
|
4109
|
+
**maven_maven_repository_version_href** | **str**| |
|
|
4110
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
4111
|
+
|
|
4112
|
+
### Return type
|
|
4113
|
+
|
|
4114
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
4115
|
+
|
|
4116
|
+
### Authorization
|
|
4117
|
+
|
|
4118
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
4119
|
+
|
|
4120
|
+
### HTTP request headers
|
|
4121
|
+
|
|
4122
|
+
- **Content-Type**: Not defined
|
|
4123
|
+
- **Accept**: application/json
|
|
4124
|
+
|
|
4125
|
+
### HTTP response details
|
|
4126
|
+
|
|
4127
|
+
| Status code | Description | Response headers |
|
|
4128
|
+
|-------------|-------------|------------------|
|
|
4129
|
+
**202** | | - |
|
|
4130
|
+
|
|
4131
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
4132
|
+
|
|
4133
|
+
# **list**
|
|
4134
|
+
> PaginatedRepositoryVersionResponseList list(maven_maven_repository_href, x_task_diagnostics=x_task_diagnostics, content=content, content__in=content__in, limit=limit, number=number, number__gt=number__gt, number__gte=number__gte, number__lt=number__lt, number__lte=number__lte, number__range=number__range, offset=offset, ordering=ordering, prn__in=prn__in, pulp_created=pulp_created, pulp_created__gt=pulp_created__gt, pulp_created__gte=pulp_created__gte, pulp_created__isnull=pulp_created__isnull, pulp_created__lt=pulp_created__lt, pulp_created__lte=pulp_created__lte, pulp_created__range=pulp_created__range, pulp_href__in=pulp_href__in, q=q, fields=fields, exclude_fields=exclude_fields)
|
|
4135
|
+
|
|
4136
|
+
List repository versions
|
|
4137
|
+
|
|
4138
|
+
MavenRepositoryVersion represents a single Maven repository version.
|
|
4139
|
+
|
|
4140
|
+
### Example
|
|
4141
|
+
|
|
4142
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
4143
|
+
* Basic Authentication (basicAuth):
|
|
4144
|
+
* Api Key Authentication (cookieAuth):
|
|
4145
|
+
|
|
4146
|
+
```python
|
|
4147
|
+
import pulpcore.client.pulp_maven
|
|
4148
|
+
from pulpcore.client.pulp_maven.models.paginated_repository_version_response_list import PaginatedRepositoryVersionResponseList
|
|
4149
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
4150
|
+
from pprint import pprint
|
|
4151
|
+
|
|
4152
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
4153
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
4154
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
4155
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
4156
|
+
)
|
|
4157
|
+
|
|
4158
|
+
# The client must configure the authentication and authorization parameters
|
|
4159
|
+
# in accordance with the API server security policy.
|
|
4160
|
+
# Examples for each auth method are provided below, use the example that
|
|
4161
|
+
# satisfies your auth use case.
|
|
4162
|
+
|
|
4163
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
4164
|
+
|
|
4165
|
+
# Configure HTTP basic authorization: basicAuth
|
|
4166
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
4167
|
+
username = os.environ["USERNAME"],
|
|
4168
|
+
password = os.environ["PASSWORD"]
|
|
4169
|
+
)
|
|
4170
|
+
|
|
4171
|
+
# Configure API key authorization: cookieAuth
|
|
4172
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
4173
|
+
|
|
4174
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
4175
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
4176
|
+
|
|
4177
|
+
# Enter a context with an instance of the API client
|
|
4178
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
4179
|
+
# Create an instance of the API class
|
|
4180
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenVersionsApi(api_client)
|
|
4181
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # str |
|
|
4182
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
4183
|
+
content = 'content_example' # str | Content Unit referenced by HREF/PRN (optional)
|
|
4184
|
+
content__in = ['content__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
4185
|
+
limit = 56 # int | Number of results to return per page. (optional)
|
|
4186
|
+
number = 56 # int | Filter results where number matches value (optional)
|
|
4187
|
+
number__gt = 56 # int | Filter results where number is greater than value (optional)
|
|
4188
|
+
number__gte = 56 # int | Filter results where number is greater than or equal to value (optional)
|
|
4189
|
+
number__lt = 56 # int | Filter results where number is less than value (optional)
|
|
4190
|
+
number__lte = 56 # int | Filter results where number is less than or equal to value (optional)
|
|
4191
|
+
number__range = [56] # List[int] | Filter results where number is between two comma separated values (optional)
|
|
4192
|
+
offset = 56 # int | The initial index from which to return the results. (optional)
|
|
4193
|
+
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
|
|
4194
|
+
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
4195
|
+
pulp_created = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created matches value (optional)
|
|
4196
|
+
pulp_created__gt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is greater than value (optional)
|
|
4197
|
+
pulp_created__gte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is greater than or equal to value (optional)
|
|
4198
|
+
pulp_created__isnull = True # bool | Filter results where pulp_created has a null value (optional)
|
|
4199
|
+
pulp_created__lt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is less than value (optional)
|
|
4200
|
+
pulp_created__lte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is less than or equal to value (optional)
|
|
4201
|
+
pulp_created__range = ['2013-10-20T19:20:30+01:00'] # List[datetime] | Filter results where pulp_created is between two comma separated values (optional)
|
|
4202
|
+
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
|
|
4203
|
+
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
|
|
4204
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
4205
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
4206
|
+
|
|
4207
|
+
try:
|
|
4208
|
+
# List repository versions
|
|
4209
|
+
api_response = api_instance.list(maven_maven_repository_href, x_task_diagnostics=x_task_diagnostics, content=content, content__in=content__in, limit=limit, number=number, number__gt=number__gt, number__gte=number__gte, number__lt=number__lt, number__lte=number__lte, number__range=number__range, offset=offset, ordering=ordering, prn__in=prn__in, pulp_created=pulp_created, pulp_created__gt=pulp_created__gt, pulp_created__gte=pulp_created__gte, pulp_created__isnull=pulp_created__isnull, pulp_created__lt=pulp_created__lt, pulp_created__lte=pulp_created__lte, pulp_created__range=pulp_created__range, pulp_href__in=pulp_href__in, q=q, fields=fields, exclude_fields=exclude_fields)
|
|
4210
|
+
print("The response of RepositoriesMavenVersionsApi->list:\n")
|
|
4211
|
+
pprint(api_response)
|
|
4212
|
+
except Exception as e:
|
|
4213
|
+
print("Exception when calling RepositoriesMavenVersionsApi->list: %s\n" % e)
|
|
4214
|
+
```
|
|
4215
|
+
|
|
4216
|
+
|
|
4217
|
+
|
|
4218
|
+
### Parameters
|
|
4219
|
+
|
|
4220
|
+
|
|
4221
|
+
Name | Type | Description | Notes
|
|
4222
|
+
------------- | ------------- | ------------- | -------------
|
|
4223
|
+
**maven_maven_repository_href** | **str**| |
|
|
4224
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
4225
|
+
**content** | **str**| Content Unit referenced by HREF/PRN | [optional]
|
|
4226
|
+
**content__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
4227
|
+
**limit** | **int**| Number of results to return per page. | [optional]
|
|
4228
|
+
**number** | **int**| Filter results where number matches value | [optional]
|
|
4229
|
+
**number__gt** | **int**| Filter results where number is greater than value | [optional]
|
|
4230
|
+
**number__gte** | **int**| Filter results where number is greater than or equal to value | [optional]
|
|
4231
|
+
**number__lt** | **int**| Filter results where number is less than value | [optional]
|
|
4232
|
+
**number__lte** | **int**| Filter results where number is less than or equal to value | [optional]
|
|
4233
|
+
**number__range** | [**List[int]**](int.md)| Filter results where number is between two comma separated values | [optional]
|
|
4234
|
+
**offset** | **int**| The initial index from which to return the results. | [optional]
|
|
4235
|
+
**ordering** | [**List[str]**](str.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
|
4236
|
+
**prn__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
4237
|
+
**pulp_created** | **datetime**| Filter results where pulp_created matches value | [optional]
|
|
4238
|
+
**pulp_created__gt** | **datetime**| Filter results where pulp_created is greater than value | [optional]
|
|
4239
|
+
**pulp_created__gte** | **datetime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
|
4240
|
+
**pulp_created__isnull** | **bool**| Filter results where pulp_created has a null value | [optional]
|
|
4241
|
+
**pulp_created__lt** | **datetime**| Filter results where pulp_created is less than value | [optional]
|
|
4242
|
+
**pulp_created__lte** | **datetime**| Filter results where pulp_created is less than or equal to value | [optional]
|
|
4243
|
+
**pulp_created__range** | [**List[datetime]**](datetime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
|
4244
|
+
**pulp_href__in** | [**List[str]**](str.md)| Multiple values may be separated by commas. | [optional]
|
|
4245
|
+
**q** | **str**| Filter results by using NOT, AND and OR operations on other filters | [optional]
|
|
4246
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
4247
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
4248
|
+
|
|
4249
|
+
### Return type
|
|
4250
|
+
|
|
4251
|
+
[**PaginatedRepositoryVersionResponseList**](PaginatedRepositoryVersionResponseList.md)
|
|
4252
|
+
|
|
4253
|
+
### Authorization
|
|
4254
|
+
|
|
4255
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
4256
|
+
|
|
4257
|
+
### HTTP request headers
|
|
4258
|
+
|
|
4259
|
+
- **Content-Type**: Not defined
|
|
4260
|
+
- **Accept**: application/json
|
|
4261
|
+
|
|
4262
|
+
### HTTP response details
|
|
4263
|
+
|
|
4264
|
+
| Status code | Description | Response headers |
|
|
4265
|
+
|-------------|-------------|------------------|
|
|
4266
|
+
**200** | | - |
|
|
4267
|
+
|
|
4268
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
4269
|
+
|
|
4270
|
+
# **read**
|
|
4271
|
+
> RepositoryVersionResponse read(maven_maven_repository_version_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
4272
|
+
|
|
4273
|
+
Inspect a repository version
|
|
4274
|
+
|
|
4275
|
+
MavenRepositoryVersion represents a single Maven repository version.
|
|
4276
|
+
|
|
4277
|
+
### Example
|
|
4278
|
+
|
|
4279
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
4280
|
+
* Basic Authentication (basicAuth):
|
|
4281
|
+
* Api Key Authentication (cookieAuth):
|
|
4282
|
+
|
|
4283
|
+
```python
|
|
4284
|
+
import pulpcore.client.pulp_maven
|
|
4285
|
+
from pulpcore.client.pulp_maven.models.repository_version_response import RepositoryVersionResponse
|
|
4286
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
4287
|
+
from pprint import pprint
|
|
4288
|
+
|
|
4289
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
4290
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
4291
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
4292
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
4293
|
+
)
|
|
4294
|
+
|
|
4295
|
+
# The client must configure the authentication and authorization parameters
|
|
4296
|
+
# in accordance with the API server security policy.
|
|
4297
|
+
# Examples for each auth method are provided below, use the example that
|
|
4298
|
+
# satisfies your auth use case.
|
|
4299
|
+
|
|
4300
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
4301
|
+
|
|
4302
|
+
# Configure HTTP basic authorization: basicAuth
|
|
4303
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
4304
|
+
username = os.environ["USERNAME"],
|
|
4305
|
+
password = os.environ["PASSWORD"]
|
|
4306
|
+
)
|
|
4307
|
+
|
|
4308
|
+
# Configure API key authorization: cookieAuth
|
|
4309
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
4310
|
+
|
|
4311
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
4312
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
4313
|
+
|
|
4314
|
+
# Enter a context with an instance of the API client
|
|
4315
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
4316
|
+
# Create an instance of the API class
|
|
4317
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenVersionsApi(api_client)
|
|
4318
|
+
maven_maven_repository_version_href = 'maven_maven_repository_version_href_example' # str |
|
|
4319
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
4320
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
4321
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
4322
|
+
|
|
4323
|
+
try:
|
|
4324
|
+
# Inspect a repository version
|
|
4325
|
+
api_response = api_instance.read(maven_maven_repository_version_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
4326
|
+
print("The response of RepositoriesMavenVersionsApi->read:\n")
|
|
4327
|
+
pprint(api_response)
|
|
4328
|
+
except Exception as e:
|
|
4329
|
+
print("Exception when calling RepositoriesMavenVersionsApi->read: %s\n" % e)
|
|
4330
|
+
```
|
|
4331
|
+
|
|
4332
|
+
|
|
4333
|
+
|
|
4334
|
+
### Parameters
|
|
4335
|
+
|
|
4336
|
+
|
|
4337
|
+
Name | Type | Description | Notes
|
|
4338
|
+
------------- | ------------- | ------------- | -------------
|
|
4339
|
+
**maven_maven_repository_version_href** | **str**| |
|
|
4340
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
4341
|
+
**fields** | [**List[str]**](str.md)| A list of fields to include in the response. | [optional]
|
|
4342
|
+
**exclude_fields** | [**List[str]**](str.md)| A list of fields to exclude from the response. | [optional]
|
|
4343
|
+
|
|
4344
|
+
### Return type
|
|
4345
|
+
|
|
4346
|
+
[**RepositoryVersionResponse**](RepositoryVersionResponse.md)
|
|
4347
|
+
|
|
4348
|
+
### Authorization
|
|
4349
|
+
|
|
4350
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
4351
|
+
|
|
4352
|
+
### HTTP request headers
|
|
4353
|
+
|
|
4354
|
+
- **Content-Type**: Not defined
|
|
4355
|
+
- **Accept**: application/json
|
|
4356
|
+
|
|
4357
|
+
### HTTP response details
|
|
4358
|
+
|
|
4359
|
+
| Status code | Description | Response headers |
|
|
4360
|
+
|-------------|-------------|------------------|
|
|
4361
|
+
**200** | | - |
|
|
4362
|
+
|
|
4363
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
4364
|
+
|
|
4365
|
+
# **repair**
|
|
4366
|
+
> AsyncOperationResponse repair(maven_maven_repository_version_href, repair, x_task_diagnostics=x_task_diagnostics)
|
|
4367
|
+
|
|
4368
|
+
|
|
4369
|
+
|
|
4370
|
+
Trigger an asynchronous task to repair a repository version.
|
|
4371
|
+
|
|
4372
|
+
### Example
|
|
4373
|
+
|
|
4374
|
+
* OAuth Authentication (json_header_remote_authentication):
|
|
4375
|
+
* Basic Authentication (basicAuth):
|
|
4376
|
+
* Api Key Authentication (cookieAuth):
|
|
4377
|
+
|
|
4378
|
+
```python
|
|
4379
|
+
import pulpcore.client.pulp_maven
|
|
4380
|
+
from pulpcore.client.pulp_maven.models.async_operation_response import AsyncOperationResponse
|
|
4381
|
+
from pulpcore.client.pulp_maven.models.repair import Repair
|
|
4382
|
+
from pulpcore.client.pulp_maven.rest import ApiException
|
|
4383
|
+
from pprint import pprint
|
|
4384
|
+
|
|
4385
|
+
# Defining the host is optional and defaults to https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
4386
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
4387
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
4388
|
+
host = "https://env-ephemeral-nvwxai.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
4389
|
+
)
|
|
4390
|
+
|
|
4391
|
+
# The client must configure the authentication and authorization parameters
|
|
4392
|
+
# in accordance with the API server security policy.
|
|
4393
|
+
# Examples for each auth method are provided below, use the example that
|
|
4394
|
+
# satisfies your auth use case.
|
|
4395
|
+
|
|
4396
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
4397
|
+
|
|
4398
|
+
# Configure HTTP basic authorization: basicAuth
|
|
4399
|
+
configuration = pulpcore.client.pulp_maven.Configuration(
|
|
4400
|
+
username = os.environ["USERNAME"],
|
|
4401
|
+
password = os.environ["PASSWORD"]
|
|
4402
|
+
)
|
|
4403
|
+
|
|
4404
|
+
# Configure API key authorization: cookieAuth
|
|
4405
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
4406
|
+
|
|
4407
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
4408
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
4409
|
+
|
|
4410
|
+
# Enter a context with an instance of the API client
|
|
4411
|
+
with pulpcore.client.pulp_maven.ApiClient(configuration) as api_client:
|
|
4412
|
+
# Create an instance of the API class
|
|
4413
|
+
api_instance = pulpcore.client.pulp_maven.RepositoriesMavenVersionsApi(api_client)
|
|
4414
|
+
maven_maven_repository_version_href = 'maven_maven_repository_version_href_example' # str |
|
|
4415
|
+
repair = pulpcore.client.pulp_maven.Repair() # Repair |
|
|
4416
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
4417
|
+
|
|
4418
|
+
try:
|
|
4419
|
+
api_response = api_instance.repair(maven_maven_repository_version_href, repair, x_task_diagnostics=x_task_diagnostics)
|
|
4420
|
+
print("The response of RepositoriesMavenVersionsApi->repair:\n")
|
|
4421
|
+
pprint(api_response)
|
|
4422
|
+
except Exception as e:
|
|
4423
|
+
print("Exception when calling RepositoriesMavenVersionsApi->repair: %s\n" % e)
|
|
4424
|
+
```
|
|
4425
|
+
|
|
4426
|
+
|
|
4427
|
+
|
|
4428
|
+
### Parameters
|
|
4429
|
+
|
|
4430
|
+
|
|
4431
|
+
Name | Type | Description | Notes
|
|
4432
|
+
------------- | ------------- | ------------- | -------------
|
|
4433
|
+
**maven_maven_repository_version_href** | **str**| |
|
|
4434
|
+
**repair** | [**Repair**](Repair.md)| |
|
|
4435
|
+
**x_task_diagnostics** | [**List[str]**](str.md)| List of profilers to use on tasks. | [optional]
|
|
4436
|
+
|
|
4437
|
+
### Return type
|
|
4438
|
+
|
|
4439
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
4440
|
+
|
|
4441
|
+
### Authorization
|
|
4442
|
+
|
|
4443
|
+
[json_header_remote_authentication](../README.md#json_header_remote_authentication), [basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
4444
|
+
|
|
4445
|
+
### HTTP request headers
|
|
4446
|
+
|
|
4447
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
4448
|
+
- **Accept**: application/json
|
|
4449
|
+
|
|
4450
|
+
### HTTP response details
|
|
4451
|
+
|
|
4452
|
+
| Status code | Description | Response headers |
|
|
4453
|
+
|-------------|-------------|------------------|
|
|
4454
|
+
**202** | | - |
|
|
4455
|
+
|
|
4456
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
4457
|
+
|
|
4458
|
+
# RepositoryAddCachedContent
|
|
4459
|
+
|
|
4460
|
+
A mixin for validating unknown serializers' fields.
|
|
4461
|
+
|
|
4462
|
+
## Properties
|
|
4463
|
+
|
|
4464
|
+
Name | Type | Description | Notes
|
|
4465
|
+
------------ | ------------- | ------------- | -------------
|
|
4466
|
+
**remote** | **str** | A remote to use to identify content that was cached. This will override a remote set on repository. | [optional]
|
|
4467
|
+
|
|
4468
|
+
## Example
|
|
4469
|
+
|
|
4470
|
+
```python
|
|
4471
|
+
from pulpcore.client.pulp_maven.models.repository_add_cached_content import RepositoryAddCachedContent
|
|
4472
|
+
|
|
4473
|
+
# TODO update the JSON string below
|
|
4474
|
+
json = "{}"
|
|
4475
|
+
# create an instance of RepositoryAddCachedContent from a JSON string
|
|
4476
|
+
repository_add_cached_content_instance = RepositoryAddCachedContent.from_json(json)
|
|
4477
|
+
# print the JSON string representation of the object
|
|
4478
|
+
print(RepositoryAddCachedContent.to_json())
|
|
4479
|
+
|
|
4480
|
+
# convert the object into a dict
|
|
4481
|
+
repository_add_cached_content_dict = repository_add_cached_content_instance.to_dict()
|
|
4482
|
+
# create an instance of RepositoryAddCachedContent from a dict
|
|
4483
|
+
repository_add_cached_content_from_dict = RepositoryAddCachedContent.from_dict(repository_add_cached_content_dict)
|
|
4484
|
+
```
|
|
4485
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
4486
|
+
|
|
4487
|
+
|
|
4488
|
+
# RepositoryVersionResponse
|
|
4489
|
+
|
|
4490
|
+
Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
|
4491
|
+
|
|
4492
|
+
## Properties
|
|
4493
|
+
|
|
4494
|
+
Name | Type | Description | Notes
|
|
4495
|
+
------------ | ------------- | ------------- | -------------
|
|
4496
|
+
**pulp_href** | **str** | | [optional] [readonly]
|
|
4497
|
+
**prn** | **str** | The Pulp Resource Name (PRN). | [optional] [readonly]
|
|
4498
|
+
**pulp_created** | **datetime** | Timestamp of creation. | [optional] [readonly]
|
|
4499
|
+
**pulp_last_updated** | **datetime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
|
4500
|
+
**number** | **int** | | [optional] [readonly]
|
|
4501
|
+
**repository** | **str** | | [optional] [readonly]
|
|
4502
|
+
**base_version** | **str** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
|
4503
|
+
**content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
|
|
4504
|
+
**vuln_report** | **str** | | [optional] [readonly]
|
|
4505
|
+
|
|
4506
|
+
## Example
|
|
4507
|
+
|
|
4508
|
+
```python
|
|
4509
|
+
from pulpcore.client.pulp_maven.models.repository_version_response import RepositoryVersionResponse
|
|
4510
|
+
|
|
4511
|
+
# TODO update the JSON string below
|
|
4512
|
+
json = "{}"
|
|
4513
|
+
# create an instance of RepositoryVersionResponse from a JSON string
|
|
4514
|
+
repository_version_response_instance = RepositoryVersionResponse.from_json(json)
|
|
4515
|
+
# print the JSON string representation of the object
|
|
4516
|
+
print(RepositoryVersionResponse.to_json())
|
|
4517
|
+
|
|
4518
|
+
# convert the object into a dict
|
|
4519
|
+
repository_version_response_dict = repository_version_response_instance.to_dict()
|
|
4520
|
+
# create an instance of RepositoryVersionResponse from a dict
|
|
4521
|
+
repository_version_response_from_dict = RepositoryVersionResponse.from_dict(repository_version_response_dict)
|
|
4522
|
+
```
|
|
4523
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
4524
|
+
|
|
4525
|
+
|
|
4526
|
+
# SetLabel
|
|
4527
|
+
|
|
4528
|
+
Serializer for synchronously setting a label.
|
|
4529
|
+
|
|
4530
|
+
## Properties
|
|
4531
|
+
|
|
4532
|
+
Name | Type | Description | Notes
|
|
4533
|
+
------------ | ------------- | ------------- | -------------
|
|
4534
|
+
**key** | **str** | |
|
|
4535
|
+
**value** | **str** | |
|
|
4536
|
+
|
|
4537
|
+
## Example
|
|
4538
|
+
|
|
4539
|
+
```python
|
|
4540
|
+
from pulpcore.client.pulp_maven.models.set_label import SetLabel
|
|
4541
|
+
|
|
4542
|
+
# TODO update the JSON string below
|
|
4543
|
+
json = "{}"
|
|
4544
|
+
# create an instance of SetLabel from a JSON string
|
|
4545
|
+
set_label_instance = SetLabel.from_json(json)
|
|
4546
|
+
# print the JSON string representation of the object
|
|
4547
|
+
print(SetLabel.to_json())
|
|
4548
|
+
|
|
4549
|
+
# convert the object into a dict
|
|
4550
|
+
set_label_dict = set_label_instance.to_dict()
|
|
4551
|
+
# create an instance of SetLabel from a dict
|
|
4552
|
+
set_label_from_dict = SetLabel.from_dict(set_label_dict)
|
|
4553
|
+
```
|
|
4554
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
4555
|
+
|
|
4556
|
+
|
|
4557
|
+
# SetLabelResponse
|
|
4558
|
+
|
|
4559
|
+
Serializer for synchronously setting a label.
|
|
4560
|
+
|
|
4561
|
+
## Properties
|
|
4562
|
+
|
|
4563
|
+
Name | Type | Description | Notes
|
|
4564
|
+
------------ | ------------- | ------------- | -------------
|
|
4565
|
+
**key** | **str** | |
|
|
4566
|
+
**value** | **str** | |
|
|
4567
|
+
|
|
4568
|
+
## Example
|
|
4569
|
+
|
|
4570
|
+
```python
|
|
4571
|
+
from pulpcore.client.pulp_maven.models.set_label_response import SetLabelResponse
|
|
4572
|
+
|
|
4573
|
+
# TODO update the JSON string below
|
|
4574
|
+
json = "{}"
|
|
4575
|
+
# create an instance of SetLabelResponse from a JSON string
|
|
4576
|
+
set_label_response_instance = SetLabelResponse.from_json(json)
|
|
4577
|
+
# print the JSON string representation of the object
|
|
4578
|
+
print(SetLabelResponse.to_json())
|
|
4579
|
+
|
|
4580
|
+
# convert the object into a dict
|
|
4581
|
+
set_label_response_dict = set_label_response_instance.to_dict()
|
|
4582
|
+
# create an instance of SetLabelResponse from a dict
|
|
4583
|
+
set_label_response_from_dict = SetLabelResponse.from_dict(set_label_response_dict)
|
|
4584
|
+
```
|
|
4585
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
4586
|
+
|
|
4587
|
+
|
|
4588
|
+
# UnsetLabel
|
|
4589
|
+
|
|
4590
|
+
Serializer for synchronously UNsetting a label.
|
|
4591
|
+
|
|
4592
|
+
## Properties
|
|
4593
|
+
|
|
4594
|
+
Name | Type | Description | Notes
|
|
4595
|
+
------------ | ------------- | ------------- | -------------
|
|
4596
|
+
**key** | **str** | |
|
|
4597
|
+
|
|
4598
|
+
## Example
|
|
4599
|
+
|
|
4600
|
+
```python
|
|
4601
|
+
from pulpcore.client.pulp_maven.models.unset_label import UnsetLabel
|
|
4602
|
+
|
|
4603
|
+
# TODO update the JSON string below
|
|
4604
|
+
json = "{}"
|
|
4605
|
+
# create an instance of UnsetLabel from a JSON string
|
|
4606
|
+
unset_label_instance = UnsetLabel.from_json(json)
|
|
4607
|
+
# print the JSON string representation of the object
|
|
4608
|
+
print(UnsetLabel.to_json())
|
|
4609
|
+
|
|
4610
|
+
# convert the object into a dict
|
|
4611
|
+
unset_label_dict = unset_label_instance.to_dict()
|
|
4612
|
+
# create an instance of UnsetLabel from a dict
|
|
4613
|
+
unset_label_from_dict = UnsetLabel.from_dict(unset_label_dict)
|
|
4614
|
+
```
|
|
4615
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
4616
|
+
|
|
4617
|
+
|
|
4618
|
+
# UnsetLabelResponse
|
|
4619
|
+
|
|
4620
|
+
Serializer for synchronously UNsetting a label.
|
|
4621
|
+
|
|
4622
|
+
## Properties
|
|
4623
|
+
|
|
4624
|
+
Name | Type | Description | Notes
|
|
4625
|
+
------------ | ------------- | ------------- | -------------
|
|
4626
|
+
**key** | **str** | |
|
|
4627
|
+
**value** | **str** | | [optional] [readonly]
|
|
4628
|
+
|
|
4629
|
+
## Example
|
|
4630
|
+
|
|
4631
|
+
```python
|
|
4632
|
+
from pulpcore.client.pulp_maven.models.unset_label_response import UnsetLabelResponse
|
|
4633
|
+
|
|
4634
|
+
# TODO update the JSON string below
|
|
4635
|
+
json = "{}"
|
|
4636
|
+
# create an instance of UnsetLabelResponse from a JSON string
|
|
4637
|
+
unset_label_response_instance = UnsetLabelResponse.from_json(json)
|
|
4638
|
+
# print the JSON string representation of the object
|
|
4639
|
+
print(UnsetLabelResponse.to_json())
|
|
4640
|
+
|
|
4641
|
+
# convert the object into a dict
|
|
4642
|
+
unset_label_response_dict = unset_label_response_instance.to_dict()
|
|
4643
|
+
# create an instance of UnsetLabelResponse from a dict
|
|
4644
|
+
unset_label_response_from_dict = UnsetLabelResponse.from_dict(unset_label_response_dict)
|
|
4645
|
+
```
|
|
4646
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
4647
|
+
|
|
4648
|
+
|