pulp_python_client 3.0.0b9 → 3.0.0b11
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.
- checksums.yaml +4 -4
- data/README.md +49 -42
- data/docs/ContentPackagesApi.md +54 -56
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsPypiApi.md +108 -60
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/PatchedpythonPythonDistribution.md +23 -0
- data/docs/PatchedpythonPythonRemote.md +43 -0
- data/docs/PatchedpythonPythonRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsPypiApi.md +40 -40
- data/docs/PythonBanderRemote.md +19 -0
- data/docs/PythonPythonDistribution.md +1 -7
- data/docs/{PythonPythonDistributionRead.md → PythonPythonDistributionResponse.md} +2 -2
- data/docs/PythonPythonPackageContent.md +61 -0
- data/docs/{PythonPythonPackageContentRead.md → PythonPythonPackageContentResponse.md} +3 -3
- data/docs/PythonPythonPublication.md +2 -8
- data/docs/{PythonPythonPublicationRead.md → PythonPythonPublicationResponse.md} +2 -2
- data/docs/PythonPythonRemote.md +6 -12
- data/docs/{PythonPythonRemoteRead.md → PythonPythonRemoteResponse.md} +7 -7
- data/docs/PythonPythonRepository.md +4 -10
- data/docs/{PythonPythonRepositoryRead.md → PythonPythonRepositoryResponse.md} +5 -3
- data/docs/RemotesPythonApi.md +181 -65
- data/docs/RepositoriesPythonApi.md +97 -73
- data/docs/RepositoriesPythonVersionsApi.md +94 -60
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/{RepositoryVersionRead.md → RepositoryVersionResponse.md} +3 -3
- data/lib/pulp_python_client.rb +15 -9
- data/lib/pulp_python_client/api/content_packages_api.rb +73 -84
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +153 -90
- data/lib/pulp_python_client/api/publications_pypi_api.rb +59 -59
- data/lib/pulp_python_client/api/remotes_python_api.rb +253 -100
- data/lib/pulp_python_client/api/repositories_python_api.rb +145 -118
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +137 -89
- data/lib/pulp_python_client/api_client.rb +2 -2
- data/lib/pulp_python_client/api_error.rb +2 -2
- data/lib/pulp_python_client/configuration.rb +3 -3
- data/lib/pulp_python_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_python_client/models/content_summary.rb +9 -15
- data/lib/pulp_python_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_python_client/models/inline_response200.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +240 -0
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +359 -0
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +229 -0
- data/lib/pulp_python_client/models/policy_enum.rb +37 -0
- data/lib/pulp_python_client/models/{project_specifier.rb → python_bander_remote.rb} +26 -40
- data/lib/pulp_python_client/models/python_python_distribution.rb +4 -85
- data/lib/pulp_python_client/models/{python_python_distribution_read.rb → python_python_distribution_response.rb} +6 -58
- data/lib/pulp_python_client/models/python_python_package_content.rb +433 -0
- data/lib/pulp_python_client/models/{python_python_package_content_read.rb → python_python_package_content_response.rb} +6 -89
- data/lib/pulp_python_client/models/python_python_publication.rb +7 -37
- data/lib/pulp_python_client/models/{python_python_publication_read.rb → python_python_publication_response.rb} +6 -5
- data/lib/pulp_python_client/models/python_python_remote.rb +13 -209
- data/lib/pulp_python_client/models/{python_python_remote_read.rb → python_python_remote_response.rb} +15 -182
- data/lib/pulp_python_client/models/python_python_repository.rb +18 -78
- data/lib/pulp_python_client/models/{python_python_repository_read.rb → python_python_repository_response.rb} +21 -44
- data/lib/pulp_python_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_python_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_python_client/models/repository_version.rb +7 -43
- data/lib/pulp_python_client/models/{repository_version_read.rb → repository_version_response.rb} +8 -6
- data/lib/pulp_python_client/version.rb +3 -3
- data/pulp_python_client.gemspec +4 -4
- data/spec/api/content_packages_api_spec.rb +24 -25
- data/spec/api/distributions_pypi_api_spec.rb +39 -18
- data/spec/api/publications_pypi_api_spec.rb +14 -14
- data/spec/api/remotes_python_api_spec.rb +61 -21
- data/spec/api/repositories_python_api_spec.rb +28 -19
- data/spec/api/repositories_python_versions_api_spec.rb +38 -22
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patchedpython_python_distribution_spec.rb +59 -0
- data/spec/models/patchedpython_python_remote_spec.rb +119 -0
- data/spec/models/patchedpython_python_repository_spec.rb +53 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/{project_specifier_spec.rb → python_bander_remote_spec.rb} +10 -10
- data/spec/models/{python_python_distribution_read_spec.rb → python_python_distribution_response_spec.rb} +8 -8
- data/spec/models/python_python_distribution_spec.rb +2 -20
- data/spec/models/{python_python_package_content_read_spec.rb → python_python_package_content_response_spec.rb} +8 -8
- data/spec/models/python_python_package_content_spec.rb +173 -0
- data/spec/models/{python_python_publication_read_spec.rb → python_python_publication_response_spec.rb} +8 -8
- data/spec/models/python_python_publication_spec.rb +2 -20
- data/spec/models/{python_python_remote_read_spec.rb → python_python_remote_response_spec.rb} +8 -12
- data/spec/models/python_python_remote_spec.rb +2 -24
- data/spec/models/{python_python_repository_read_spec.rb → python_python_repository_response_spec.rb} +14 -8
- data/spec/models/python_python_repository_spec.rb +5 -23
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/{repository_version_read_spec.rb → repository_version_response_spec.rb} +8 -8
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/spec_helper.rb +2 -2
- metadata +70 -46
- data/docs/ProjectSpecifier.md +0 -19
|
@@ -5,19 +5,19 @@ All URIs are relative to *http://pulp*
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
7
|
[**create**](RepositoriesPythonApi.md#create) | **POST** /pulp/api/v3/repositories/python/python/ | Create a python repository
|
|
8
|
-
[**delete**](RepositoriesPythonApi.md#delete) | **DELETE** {
|
|
8
|
+
[**delete**](RepositoriesPythonApi.md#delete) | **DELETE** {python_python_repository_href} | Delete a python repository
|
|
9
9
|
[**list**](RepositoriesPythonApi.md#list) | **GET** /pulp/api/v3/repositories/python/python/ | List python repositorys
|
|
10
|
-
[**modify**](RepositoriesPythonApi.md#modify) | **POST** {
|
|
11
|
-
[**partial_update**](RepositoriesPythonApi.md#partial_update) | **PATCH** {
|
|
12
|
-
[**read**](RepositoriesPythonApi.md#read) | **GET** {
|
|
13
|
-
[**sync**](RepositoriesPythonApi.md#sync) | **POST** {
|
|
14
|
-
[**update**](RepositoriesPythonApi.md#update) | **PUT** {
|
|
10
|
+
[**modify**](RepositoriesPythonApi.md#modify) | **POST** {python_python_repository_href}modify/ | Modify Repository Content
|
|
11
|
+
[**partial_update**](RepositoriesPythonApi.md#partial_update) | **PATCH** {python_python_repository_href} | Update a python repository
|
|
12
|
+
[**read**](RepositoriesPythonApi.md#read) | **GET** {python_python_repository_href} | Inspect a python repository
|
|
13
|
+
[**sync**](RepositoriesPythonApi.md#sync) | **POST** {python_python_repository_href}sync/ | Sync from remote
|
|
14
|
+
[**update**](RepositoriesPythonApi.md#update) | **PUT** {python_python_repository_href} | Update a python repository
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
## create
|
|
19
19
|
|
|
20
|
-
>
|
|
20
|
+
> PythonPythonRepositoryResponse create(python_python_repository)
|
|
21
21
|
|
|
22
22
|
Create a python repository
|
|
23
23
|
|
|
@@ -30,17 +30,17 @@ A ViewSet for PythonRepository.
|
|
|
30
30
|
require 'pulp_python_client'
|
|
31
31
|
# setup authorization
|
|
32
32
|
PulpPythonClient.configure do |config|
|
|
33
|
-
# Configure HTTP basic authorization:
|
|
33
|
+
# Configure HTTP basic authorization: basicAuth
|
|
34
34
|
config.username = 'YOUR USERNAME'
|
|
35
35
|
config.password = 'YOUR PASSWORD'
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
39
|
-
|
|
39
|
+
python_python_repository = PulpPythonClient::PythonPythonRepository.new # PythonPythonRepository |
|
|
40
40
|
|
|
41
41
|
begin
|
|
42
42
|
#Create a python repository
|
|
43
|
-
result = api_instance.create(
|
|
43
|
+
result = api_instance.create(python_python_repository)
|
|
44
44
|
p result
|
|
45
45
|
rescue PulpPythonClient::ApiError => e
|
|
46
46
|
puts "Exception when calling RepositoriesPythonApi->create: #{e}"
|
|
@@ -52,25 +52,25 @@ end
|
|
|
52
52
|
|
|
53
53
|
Name | Type | Description | Notes
|
|
54
54
|
------------- | ------------- | ------------- | -------------
|
|
55
|
-
**
|
|
55
|
+
**python_python_repository** | [**PythonPythonRepository**](PythonPythonRepository.md)| |
|
|
56
56
|
|
|
57
57
|
### Return type
|
|
58
58
|
|
|
59
|
-
[**
|
|
59
|
+
[**PythonPythonRepositoryResponse**](PythonPythonRepositoryResponse.md)
|
|
60
60
|
|
|
61
61
|
### Authorization
|
|
62
62
|
|
|
63
|
-
[
|
|
63
|
+
[basicAuth](../README.md#basicAuth)
|
|
64
64
|
|
|
65
65
|
### HTTP request headers
|
|
66
66
|
|
|
67
|
-
- **Content-Type**: application/json
|
|
67
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
68
68
|
- **Accept**: application/json
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
## delete
|
|
72
72
|
|
|
73
|
-
> AsyncOperationResponse delete(
|
|
73
|
+
> AsyncOperationResponse delete(python_python_repository_href, opts)
|
|
74
74
|
|
|
75
75
|
Delete a python repository
|
|
76
76
|
|
|
@@ -83,17 +83,22 @@ Trigger an asynchronous delete task
|
|
|
83
83
|
require 'pulp_python_client'
|
|
84
84
|
# setup authorization
|
|
85
85
|
PulpPythonClient.configure do |config|
|
|
86
|
-
# Configure HTTP basic authorization:
|
|
86
|
+
# Configure HTTP basic authorization: basicAuth
|
|
87
87
|
config.username = 'YOUR USERNAME'
|
|
88
88
|
config.password = 'YOUR PASSWORD'
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
92
|
-
|
|
92
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
93
|
+
opts = {
|
|
94
|
+
name: 'name_example', # String | name
|
|
95
|
+
name__in: 'name__in_example', # String | name__in
|
|
96
|
+
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
|
97
|
+
}
|
|
93
98
|
|
|
94
99
|
begin
|
|
95
100
|
#Delete a python repository
|
|
96
|
-
result = api_instance.delete(
|
|
101
|
+
result = api_instance.delete(python_python_repository_href, opts)
|
|
97
102
|
p result
|
|
98
103
|
rescue PulpPythonClient::ApiError => e
|
|
99
104
|
puts "Exception when calling RepositoriesPythonApi->delete: #{e}"
|
|
@@ -105,7 +110,10 @@ end
|
|
|
105
110
|
|
|
106
111
|
Name | Type | Description | Notes
|
|
107
112
|
------------- | ------------- | ------------- | -------------
|
|
108
|
-
**
|
|
113
|
+
**python_python_repository_href** | **String**| |
|
|
114
|
+
**name** | **String**| name | [optional]
|
|
115
|
+
**name__in** | **String**| name__in | [optional]
|
|
116
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
109
117
|
|
|
110
118
|
### Return type
|
|
111
119
|
|
|
@@ -113,7 +121,7 @@ Name | Type | Description | Notes
|
|
|
113
121
|
|
|
114
122
|
### Authorization
|
|
115
123
|
|
|
116
|
-
[
|
|
124
|
+
[basicAuth](../README.md#basicAuth)
|
|
117
125
|
|
|
118
126
|
### HTTP request headers
|
|
119
127
|
|
|
@@ -136,18 +144,18 @@ A ViewSet for PythonRepository.
|
|
|
136
144
|
require 'pulp_python_client'
|
|
137
145
|
# setup authorization
|
|
138
146
|
PulpPythonClient.configure do |config|
|
|
139
|
-
# Configure HTTP basic authorization:
|
|
147
|
+
# Configure HTTP basic authorization: basicAuth
|
|
140
148
|
config.username = 'YOUR USERNAME'
|
|
141
149
|
config.password = 'YOUR PASSWORD'
|
|
142
150
|
end
|
|
143
151
|
|
|
144
152
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
145
153
|
opts = {
|
|
146
|
-
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
147
|
-
name: 'name_example', # String |
|
|
148
|
-
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
|
149
154
|
limit: 56, # Integer | Number of results to return per page.
|
|
155
|
+
name: 'name_example', # String | name
|
|
156
|
+
name__in: 'name__in_example', # String | name__in
|
|
150
157
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
158
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
151
159
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
152
160
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
153
161
|
}
|
|
@@ -166,11 +174,11 @@ end
|
|
|
166
174
|
|
|
167
175
|
Name | Type | Description | Notes
|
|
168
176
|
------------- | ------------- | ------------- | -------------
|
|
169
|
-
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
170
|
-
**name** | **String**| | [optional]
|
|
171
|
-
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
|
172
177
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
178
|
+
**name** | **String**| name | [optional]
|
|
179
|
+
**name__in** | **String**| name__in | [optional]
|
|
173
180
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
181
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
174
182
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
175
183
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
176
184
|
|
|
@@ -180,7 +188,7 @@ Name | Type | Description | Notes
|
|
|
180
188
|
|
|
181
189
|
### Authorization
|
|
182
190
|
|
|
183
|
-
[
|
|
191
|
+
[basicAuth](../README.md#basicAuth)
|
|
184
192
|
|
|
185
193
|
### HTTP request headers
|
|
186
194
|
|
|
@@ -190,7 +198,7 @@ Name | Type | Description | Notes
|
|
|
190
198
|
|
|
191
199
|
## modify
|
|
192
200
|
|
|
193
|
-
> AsyncOperationResponse modify(
|
|
201
|
+
> AsyncOperationResponse modify(python_python_repository_href, repository_add_remove_content)
|
|
194
202
|
|
|
195
203
|
Modify Repository Content
|
|
196
204
|
|
|
@@ -203,18 +211,18 @@ Trigger an asynchronous task to create a new repository version.
|
|
|
203
211
|
require 'pulp_python_client'
|
|
204
212
|
# setup authorization
|
|
205
213
|
PulpPythonClient.configure do |config|
|
|
206
|
-
# Configure HTTP basic authorization:
|
|
214
|
+
# Configure HTTP basic authorization: basicAuth
|
|
207
215
|
config.username = 'YOUR USERNAME'
|
|
208
216
|
config.password = 'YOUR PASSWORD'
|
|
209
217
|
end
|
|
210
218
|
|
|
211
219
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
212
|
-
|
|
213
|
-
|
|
220
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
221
|
+
repository_add_remove_content = PulpPythonClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
|
214
222
|
|
|
215
223
|
begin
|
|
216
224
|
#Modify Repository Content
|
|
217
|
-
result = api_instance.modify(
|
|
225
|
+
result = api_instance.modify(python_python_repository_href, repository_add_remove_content)
|
|
218
226
|
p result
|
|
219
227
|
rescue PulpPythonClient::ApiError => e
|
|
220
228
|
puts "Exception when calling RepositoriesPythonApi->modify: #{e}"
|
|
@@ -226,8 +234,8 @@ end
|
|
|
226
234
|
|
|
227
235
|
Name | Type | Description | Notes
|
|
228
236
|
------------- | ------------- | ------------- | -------------
|
|
229
|
-
**
|
|
230
|
-
**
|
|
237
|
+
**python_python_repository_href** | **String**| |
|
|
238
|
+
**repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
|
|
231
239
|
|
|
232
240
|
### Return type
|
|
233
241
|
|
|
@@ -235,19 +243,19 @@ Name | Type | Description | Notes
|
|
|
235
243
|
|
|
236
244
|
### Authorization
|
|
237
245
|
|
|
238
|
-
[
|
|
246
|
+
[basicAuth](../README.md#basicAuth)
|
|
239
247
|
|
|
240
248
|
### HTTP request headers
|
|
241
249
|
|
|
242
|
-
- **Content-Type**: application/json
|
|
250
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
243
251
|
- **Accept**: application/json
|
|
244
252
|
|
|
245
253
|
|
|
246
254
|
## partial_update
|
|
247
255
|
|
|
248
|
-
> AsyncOperationResponse partial_update(
|
|
256
|
+
> AsyncOperationResponse partial_update(python_python_repository_href, patchedpython_python_repository, opts)
|
|
249
257
|
|
|
250
|
-
|
|
258
|
+
Update a python repository
|
|
251
259
|
|
|
252
260
|
Trigger an asynchronous partial update task
|
|
253
261
|
|
|
@@ -258,18 +266,23 @@ Trigger an asynchronous partial update task
|
|
|
258
266
|
require 'pulp_python_client'
|
|
259
267
|
# setup authorization
|
|
260
268
|
PulpPythonClient.configure do |config|
|
|
261
|
-
# Configure HTTP basic authorization:
|
|
269
|
+
# Configure HTTP basic authorization: basicAuth
|
|
262
270
|
config.username = 'YOUR USERNAME'
|
|
263
271
|
config.password = 'YOUR PASSWORD'
|
|
264
272
|
end
|
|
265
273
|
|
|
266
274
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
267
|
-
|
|
268
|
-
|
|
275
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
276
|
+
patchedpython_python_repository = PulpPythonClient::PatchedpythonPythonRepository.new # PatchedpythonPythonRepository |
|
|
277
|
+
opts = {
|
|
278
|
+
name: 'name_example', # String | name
|
|
279
|
+
name__in: 'name__in_example', # String | name__in
|
|
280
|
+
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
|
281
|
+
}
|
|
269
282
|
|
|
270
283
|
begin
|
|
271
|
-
#
|
|
272
|
-
result = api_instance.partial_update(
|
|
284
|
+
#Update a python repository
|
|
285
|
+
result = api_instance.partial_update(python_python_repository_href, patchedpython_python_repository, opts)
|
|
273
286
|
p result
|
|
274
287
|
rescue PulpPythonClient::ApiError => e
|
|
275
288
|
puts "Exception when calling RepositoriesPythonApi->partial_update: #{e}"
|
|
@@ -281,8 +294,11 @@ end
|
|
|
281
294
|
|
|
282
295
|
Name | Type | Description | Notes
|
|
283
296
|
------------- | ------------- | ------------- | -------------
|
|
284
|
-
**
|
|
285
|
-
**
|
|
297
|
+
**python_python_repository_href** | **String**| |
|
|
298
|
+
**patchedpython_python_repository** | [**PatchedpythonPythonRepository**](PatchedpythonPythonRepository.md)| |
|
|
299
|
+
**name** | **String**| name | [optional]
|
|
300
|
+
**name__in** | **String**| name__in | [optional]
|
|
301
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
286
302
|
|
|
287
303
|
### Return type
|
|
288
304
|
|
|
@@ -290,17 +306,17 @@ Name | Type | Description | Notes
|
|
|
290
306
|
|
|
291
307
|
### Authorization
|
|
292
308
|
|
|
293
|
-
[
|
|
309
|
+
[basicAuth](../README.md#basicAuth)
|
|
294
310
|
|
|
295
311
|
### HTTP request headers
|
|
296
312
|
|
|
297
|
-
- **Content-Type**: application/json
|
|
313
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
298
314
|
- **Accept**: application/json
|
|
299
315
|
|
|
300
316
|
|
|
301
317
|
## read
|
|
302
318
|
|
|
303
|
-
>
|
|
319
|
+
> PythonPythonRepositoryResponse read(python_python_repository_href, opts)
|
|
304
320
|
|
|
305
321
|
Inspect a python repository
|
|
306
322
|
|
|
@@ -313,13 +329,13 @@ A ViewSet for PythonRepository.
|
|
|
313
329
|
require 'pulp_python_client'
|
|
314
330
|
# setup authorization
|
|
315
331
|
PulpPythonClient.configure do |config|
|
|
316
|
-
# Configure HTTP basic authorization:
|
|
332
|
+
# Configure HTTP basic authorization: basicAuth
|
|
317
333
|
config.username = 'YOUR USERNAME'
|
|
318
334
|
config.password = 'YOUR PASSWORD'
|
|
319
335
|
end
|
|
320
336
|
|
|
321
337
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
322
|
-
|
|
338
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
323
339
|
opts = {
|
|
324
340
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
325
341
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
@@ -327,7 +343,7 @@ opts = {
|
|
|
327
343
|
|
|
328
344
|
begin
|
|
329
345
|
#Inspect a python repository
|
|
330
|
-
result = api_instance.read(
|
|
346
|
+
result = api_instance.read(python_python_repository_href, opts)
|
|
331
347
|
p result
|
|
332
348
|
rescue PulpPythonClient::ApiError => e
|
|
333
349
|
puts "Exception when calling RepositoriesPythonApi->read: #{e}"
|
|
@@ -339,17 +355,17 @@ end
|
|
|
339
355
|
|
|
340
356
|
Name | Type | Description | Notes
|
|
341
357
|
------------- | ------------- | ------------- | -------------
|
|
342
|
-
**
|
|
358
|
+
**python_python_repository_href** | **String**| |
|
|
343
359
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
344
360
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
345
361
|
|
|
346
362
|
### Return type
|
|
347
363
|
|
|
348
|
-
[**
|
|
364
|
+
[**PythonPythonRepositoryResponse**](PythonPythonRepositoryResponse.md)
|
|
349
365
|
|
|
350
366
|
### Authorization
|
|
351
367
|
|
|
352
|
-
[
|
|
368
|
+
[basicAuth](../README.md#basicAuth)
|
|
353
369
|
|
|
354
370
|
### HTTP request headers
|
|
355
371
|
|
|
@@ -359,7 +375,7 @@ Name | Type | Description | Notes
|
|
|
359
375
|
|
|
360
376
|
## sync
|
|
361
377
|
|
|
362
|
-
> AsyncOperationResponse sync(
|
|
378
|
+
> AsyncOperationResponse sync(python_python_repository_href, repository_sync_url)
|
|
363
379
|
|
|
364
380
|
Sync from remote
|
|
365
381
|
|
|
@@ -372,18 +388,18 @@ Trigger an asynchronous task to sync Python content.
|
|
|
372
388
|
require 'pulp_python_client'
|
|
373
389
|
# setup authorization
|
|
374
390
|
PulpPythonClient.configure do |config|
|
|
375
|
-
# Configure HTTP basic authorization:
|
|
391
|
+
# Configure HTTP basic authorization: basicAuth
|
|
376
392
|
config.username = 'YOUR USERNAME'
|
|
377
393
|
config.password = 'YOUR PASSWORD'
|
|
378
394
|
end
|
|
379
395
|
|
|
380
396
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
381
|
-
|
|
382
|
-
|
|
397
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
398
|
+
repository_sync_url = PulpPythonClient::RepositorySyncURL.new # RepositorySyncURL |
|
|
383
399
|
|
|
384
400
|
begin
|
|
385
401
|
#Sync from remote
|
|
386
|
-
result = api_instance.sync(
|
|
402
|
+
result = api_instance.sync(python_python_repository_href, repository_sync_url)
|
|
387
403
|
p result
|
|
388
404
|
rescue PulpPythonClient::ApiError => e
|
|
389
405
|
puts "Exception when calling RepositoriesPythonApi->sync: #{e}"
|
|
@@ -395,8 +411,8 @@ end
|
|
|
395
411
|
|
|
396
412
|
Name | Type | Description | Notes
|
|
397
413
|
------------- | ------------- | ------------- | -------------
|
|
398
|
-
**
|
|
399
|
-
**
|
|
414
|
+
**python_python_repository_href** | **String**| |
|
|
415
|
+
**repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
|
400
416
|
|
|
401
417
|
### Return type
|
|
402
418
|
|
|
@@ -404,17 +420,17 @@ Name | Type | Description | Notes
|
|
|
404
420
|
|
|
405
421
|
### Authorization
|
|
406
422
|
|
|
407
|
-
[
|
|
423
|
+
[basicAuth](../README.md#basicAuth)
|
|
408
424
|
|
|
409
425
|
### HTTP request headers
|
|
410
426
|
|
|
411
|
-
- **Content-Type**: application/json
|
|
427
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
412
428
|
- **Accept**: application/json
|
|
413
429
|
|
|
414
430
|
|
|
415
431
|
## update
|
|
416
432
|
|
|
417
|
-
> AsyncOperationResponse update(
|
|
433
|
+
> AsyncOperationResponse update(python_python_repository_href, python_python_repository, opts)
|
|
418
434
|
|
|
419
435
|
Update a python repository
|
|
420
436
|
|
|
@@ -427,18 +443,23 @@ Trigger an asynchronous update task
|
|
|
427
443
|
require 'pulp_python_client'
|
|
428
444
|
# setup authorization
|
|
429
445
|
PulpPythonClient.configure do |config|
|
|
430
|
-
# Configure HTTP basic authorization:
|
|
446
|
+
# Configure HTTP basic authorization: basicAuth
|
|
431
447
|
config.username = 'YOUR USERNAME'
|
|
432
448
|
config.password = 'YOUR PASSWORD'
|
|
433
449
|
end
|
|
434
450
|
|
|
435
451
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
436
|
-
|
|
437
|
-
|
|
452
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
453
|
+
python_python_repository = PulpPythonClient::PythonPythonRepository.new # PythonPythonRepository |
|
|
454
|
+
opts = {
|
|
455
|
+
name: 'name_example', # String | name
|
|
456
|
+
name__in: 'name__in_example', # String | name__in
|
|
457
|
+
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
|
458
|
+
}
|
|
438
459
|
|
|
439
460
|
begin
|
|
440
461
|
#Update a python repository
|
|
441
|
-
result = api_instance.update(
|
|
462
|
+
result = api_instance.update(python_python_repository_href, python_python_repository, opts)
|
|
442
463
|
p result
|
|
443
464
|
rescue PulpPythonClient::ApiError => e
|
|
444
465
|
puts "Exception when calling RepositoriesPythonApi->update: #{e}"
|
|
@@ -450,8 +471,11 @@ end
|
|
|
450
471
|
|
|
451
472
|
Name | Type | Description | Notes
|
|
452
473
|
------------- | ------------- | ------------- | -------------
|
|
453
|
-
**
|
|
454
|
-
**
|
|
474
|
+
**python_python_repository_href** | **String**| |
|
|
475
|
+
**python_python_repository** | [**PythonPythonRepository**](PythonPythonRepository.md)| |
|
|
476
|
+
**name** | **String**| name | [optional]
|
|
477
|
+
**name__in** | **String**| name__in | [optional]
|
|
478
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
455
479
|
|
|
456
480
|
### Return type
|
|
457
481
|
|
|
@@ -459,10 +483,10 @@ Name | Type | Description | Notes
|
|
|
459
483
|
|
|
460
484
|
### Authorization
|
|
461
485
|
|
|
462
|
-
[
|
|
486
|
+
[basicAuth](../README.md#basicAuth)
|
|
463
487
|
|
|
464
488
|
### HTTP request headers
|
|
465
489
|
|
|
466
|
-
- **Content-Type**: application/json
|
|
490
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
467
491
|
- **Accept**: application/json
|
|
468
492
|
|