pulp_python_client 3.0.0b9 → 3.0.0b11
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -4,16 +4,16 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**delete**](RepositoriesPythonVersionsApi.md#delete) | **DELETE** {
|
8
|
-
[**list**](RepositoriesPythonVersionsApi.md#list) | **GET** {
|
9
|
-
[**read**](RepositoriesPythonVersionsApi.md#read) | **GET** {
|
10
|
-
[**repair**](RepositoriesPythonVersionsApi.md#repair) | **POST** {
|
7
|
+
[**delete**](RepositoriesPythonVersionsApi.md#delete) | **DELETE** {python_python_repository_version_href} | Delete a repository version
|
8
|
+
[**list**](RepositoriesPythonVersionsApi.md#list) | **GET** {python_python_repository_href}versions/ | List repository versions
|
9
|
+
[**read**](RepositoriesPythonVersionsApi.md#read) | **GET** {python_python_repository_version_href} | Inspect a repository version
|
10
|
+
[**repair**](RepositoriesPythonVersionsApi.md#repair) | **POST** {python_python_repository_version_href}repair/ |
|
11
11
|
|
12
12
|
|
13
13
|
|
14
14
|
## delete
|
15
15
|
|
16
|
-
> AsyncOperationResponse delete(
|
16
|
+
> AsyncOperationResponse delete(python_python_repository_version_href, opts)
|
17
17
|
|
18
18
|
Delete a repository version
|
19
19
|
|
@@ -26,17 +26,34 @@ Trigger an asynchronous task to delete a repositroy version.
|
|
26
26
|
require 'pulp_python_client'
|
27
27
|
# setup authorization
|
28
28
|
PulpPythonClient.configure do |config|
|
29
|
-
# Configure HTTP basic authorization:
|
29
|
+
# Configure HTTP basic authorization: basicAuth
|
30
30
|
config.username = 'YOUR USERNAME'
|
31
31
|
config.password = 'YOUR PASSWORD'
|
32
32
|
end
|
33
33
|
|
34
34
|
api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
|
35
|
-
|
35
|
+
python_python_repository_version_href = 'python_python_repository_version_href_example' # String |
|
36
|
+
opts = {
|
37
|
+
content: 'content_example', # String | content
|
38
|
+
content__in: 'content__in_example', # String | content__in
|
39
|
+
number: 'number_example', # String | number
|
40
|
+
number__gt: 'number__gt_example', # String | number__gt
|
41
|
+
number__gte: 'number__gte_example', # String | number__gte
|
42
|
+
number__lt: 'number__lt_example', # String | number__lt
|
43
|
+
number__lte: 'number__lte_example', # String | number__lte
|
44
|
+
number__range: 'number__range_example', # String | number__range
|
45
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
46
|
+
pulp_created: 'pulp_created_example', # String | pulp_created
|
47
|
+
pulp_created__gt: 'pulp_created__gt_example', # String | pulp_created__gt
|
48
|
+
pulp_created__gte: 'pulp_created__gte_example', # String | pulp_created__gte
|
49
|
+
pulp_created__lt: 'pulp_created__lt_example', # String | pulp_created__lt
|
50
|
+
pulp_created__lte: 'pulp_created__lte_example', # String | pulp_created__lte
|
51
|
+
pulp_created__range: 'pulp_created__range_example' # String | pulp_created__range
|
52
|
+
}
|
36
53
|
|
37
54
|
begin
|
38
55
|
#Delete a repository version
|
39
|
-
result = api_instance.delete(
|
56
|
+
result = api_instance.delete(python_python_repository_version_href, opts)
|
40
57
|
p result
|
41
58
|
rescue PulpPythonClient::ApiError => e
|
42
59
|
puts "Exception when calling RepositoriesPythonVersionsApi->delete: #{e}"
|
@@ -48,7 +65,22 @@ end
|
|
48
65
|
|
49
66
|
Name | Type | Description | Notes
|
50
67
|
------------- | ------------- | ------------- | -------------
|
51
|
-
**
|
68
|
+
**python_python_repository_version_href** | **String**| |
|
69
|
+
**content** | **String**| content | [optional]
|
70
|
+
**content__in** | **String**| content__in | [optional]
|
71
|
+
**number** | **String**| number | [optional]
|
72
|
+
**number__gt** | **String**| number__gt | [optional]
|
73
|
+
**number__gte** | **String**| number__gte | [optional]
|
74
|
+
**number__lt** | **String**| number__lt | [optional]
|
75
|
+
**number__lte** | **String**| number__lte | [optional]
|
76
|
+
**number__range** | **String**| number__range | [optional]
|
77
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
78
|
+
**pulp_created** | **String**| pulp_created | [optional]
|
79
|
+
**pulp_created__gt** | **String**| pulp_created__gt | [optional]
|
80
|
+
**pulp_created__gte** | **String**| pulp_created__gte | [optional]
|
81
|
+
**pulp_created__lt** | **String**| pulp_created__lt | [optional]
|
82
|
+
**pulp_created__lte** | **String**| pulp_created__lte | [optional]
|
83
|
+
**pulp_created__range** | **String**| pulp_created__range | [optional]
|
52
84
|
|
53
85
|
### Return type
|
54
86
|
|
@@ -56,7 +88,7 @@ Name | Type | Description | Notes
|
|
56
88
|
|
57
89
|
### Authorization
|
58
90
|
|
59
|
-
[
|
91
|
+
[basicAuth](../README.md#basicAuth)
|
60
92
|
|
61
93
|
### HTTP request headers
|
62
94
|
|
@@ -66,7 +98,7 @@ Name | Type | Description | Notes
|
|
66
98
|
|
67
99
|
## list
|
68
100
|
|
69
|
-
> InlineResponse2005 list(
|
101
|
+
> InlineResponse2005 list(python_python_repository_href, opts)
|
70
102
|
|
71
103
|
List repository versions
|
72
104
|
|
@@ -79,37 +111,38 @@ PythonRepositoryVersion represents a single Python repository version.
|
|
79
111
|
require 'pulp_python_client'
|
80
112
|
# setup authorization
|
81
113
|
PulpPythonClient.configure do |config|
|
82
|
-
# Configure HTTP basic authorization:
|
114
|
+
# Configure HTTP basic authorization: basicAuth
|
83
115
|
config.username = 'YOUR USERNAME'
|
84
116
|
config.password = 'YOUR PASSWORD'
|
85
117
|
end
|
86
118
|
|
87
119
|
api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
|
88
|
-
|
120
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
89
121
|
opts = {
|
90
|
-
|
91
|
-
|
92
|
-
number__lt: 3.4, # Float | Filter results where number is less than value
|
93
|
-
number__lte: 3.4, # Float | Filter results where number is less than or equal to value
|
94
|
-
number__gt: 3.4, # Float | Filter results where number is greater than value
|
95
|
-
number__gte: 3.4, # Float | Filter results where number is greater than or equal to value
|
96
|
-
number__range: 3.4, # Float | Filter results where number is between two comma separated values
|
97
|
-
pulp_created__lt: 'pulp_created__lt_example', # String | Filter results where pulp_created is less than value
|
98
|
-
pulp_created__lte: 'pulp_created__lte_example', # String | Filter results where pulp_created is less than or equal to value
|
99
|
-
pulp_created__gt: 'pulp_created__gt_example', # String | Filter results where pulp_created is greater than value
|
100
|
-
pulp_created__gte: 'pulp_created__gte_example', # String | Filter results where pulp_created is greater than or equal to value
|
101
|
-
pulp_created__range: 'pulp_created__range_example', # String | Filter results where pulp_created is between two comma separated values
|
102
|
-
content: 'content_example', # String | Content Unit referenced by HREF
|
103
|
-
pulp_created: 'pulp_created_example', # String | ISO 8601 formatted dates are supported
|
122
|
+
content: 'content_example', # String | content
|
123
|
+
content__in: 'content__in_example', # String | content__in
|
104
124
|
limit: 56, # Integer | Number of results to return per page.
|
125
|
+
number: 'number_example', # String | number
|
126
|
+
number__gt: 'number__gt_example', # String | number__gt
|
127
|
+
number__gte: 'number__gte_example', # String | number__gte
|
128
|
+
number__lt: 'number__lt_example', # String | number__lt
|
129
|
+
number__lte: 'number__lte_example', # String | number__lte
|
130
|
+
number__range: 'number__range_example', # String | number__range
|
105
131
|
offset: 56, # Integer | The initial index from which to return the results.
|
132
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
133
|
+
pulp_created: 'pulp_created_example', # String | pulp_created
|
134
|
+
pulp_created__gt: 'pulp_created__gt_example', # String | pulp_created__gt
|
135
|
+
pulp_created__gte: 'pulp_created__gte_example', # String | pulp_created__gte
|
136
|
+
pulp_created__lt: 'pulp_created__lt_example', # String | pulp_created__lt
|
137
|
+
pulp_created__lte: 'pulp_created__lte_example', # String | pulp_created__lte
|
138
|
+
pulp_created__range: 'pulp_created__range_example', # String | pulp_created__range
|
106
139
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
107
140
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
108
141
|
}
|
109
142
|
|
110
143
|
begin
|
111
144
|
#List repository versions
|
112
|
-
result = api_instance.list(
|
145
|
+
result = api_instance.list(python_python_repository_href, opts)
|
113
146
|
p result
|
114
147
|
rescue PulpPythonClient::ApiError => e
|
115
148
|
puts "Exception when calling RepositoriesPythonVersionsApi->list: #{e}"
|
@@ -121,23 +154,24 @@ end
|
|
121
154
|
|
122
155
|
Name | Type | Description | Notes
|
123
156
|
------------- | ------------- | ------------- | -------------
|
124
|
-
**
|
125
|
-
**
|
126
|
-
**
|
127
|
-
**number__lt** | **Float**| Filter results where number is less than value | [optional]
|
128
|
-
**number__lte** | **Float**| Filter results where number is less than or equal to value | [optional]
|
129
|
-
**number__gt** | **Float**| Filter results where number is greater than value | [optional]
|
130
|
-
**number__gte** | **Float**| Filter results where number is greater than or equal to value | [optional]
|
131
|
-
**number__range** | **Float**| Filter results where number is between two comma separated values | [optional]
|
132
|
-
**pulp_created__lt** | **String**| Filter results where pulp_created is less than value | [optional]
|
133
|
-
**pulp_created__lte** | **String**| Filter results where pulp_created is less than or equal to value | [optional]
|
134
|
-
**pulp_created__gt** | **String**| Filter results where pulp_created is greater than value | [optional]
|
135
|
-
**pulp_created__gte** | **String**| Filter results where pulp_created is greater than or equal to value | [optional]
|
136
|
-
**pulp_created__range** | **String**| Filter results where pulp_created is between two comma separated values | [optional]
|
137
|
-
**content** | **String**| Content Unit referenced by HREF | [optional]
|
138
|
-
**pulp_created** | **String**| ISO 8601 formatted dates are supported | [optional]
|
157
|
+
**python_python_repository_href** | **String**| |
|
158
|
+
**content** | **String**| content | [optional]
|
159
|
+
**content__in** | **String**| content__in | [optional]
|
139
160
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
161
|
+
**number** | **String**| number | [optional]
|
162
|
+
**number__gt** | **String**| number__gt | [optional]
|
163
|
+
**number__gte** | **String**| number__gte | [optional]
|
164
|
+
**number__lt** | **String**| number__lt | [optional]
|
165
|
+
**number__lte** | **String**| number__lte | [optional]
|
166
|
+
**number__range** | **String**| number__range | [optional]
|
140
167
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
168
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
169
|
+
**pulp_created** | **String**| pulp_created | [optional]
|
170
|
+
**pulp_created__gt** | **String**| pulp_created__gt | [optional]
|
171
|
+
**pulp_created__gte** | **String**| pulp_created__gte | [optional]
|
172
|
+
**pulp_created__lt** | **String**| pulp_created__lt | [optional]
|
173
|
+
**pulp_created__lte** | **String**| pulp_created__lte | [optional]
|
174
|
+
**pulp_created__range** | **String**| pulp_created__range | [optional]
|
141
175
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
142
176
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
143
177
|
|
@@ -147,7 +181,7 @@ Name | Type | Description | Notes
|
|
147
181
|
|
148
182
|
### Authorization
|
149
183
|
|
150
|
-
[
|
184
|
+
[basicAuth](../README.md#basicAuth)
|
151
185
|
|
152
186
|
### HTTP request headers
|
153
187
|
|
@@ -157,7 +191,7 @@ Name | Type | Description | Notes
|
|
157
191
|
|
158
192
|
## read
|
159
193
|
|
160
|
-
>
|
194
|
+
> RepositoryVersionResponse read(python_python_repository_version_href, opts)
|
161
195
|
|
162
196
|
Inspect a repository version
|
163
197
|
|
@@ -170,13 +204,13 @@ PythonRepositoryVersion represents a single Python repository version.
|
|
170
204
|
require 'pulp_python_client'
|
171
205
|
# setup authorization
|
172
206
|
PulpPythonClient.configure do |config|
|
173
|
-
# Configure HTTP basic authorization:
|
207
|
+
# Configure HTTP basic authorization: basicAuth
|
174
208
|
config.username = 'YOUR USERNAME'
|
175
209
|
config.password = 'YOUR PASSWORD'
|
176
210
|
end
|
177
211
|
|
178
212
|
api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
|
179
|
-
|
213
|
+
python_python_repository_version_href = 'python_python_repository_version_href_example' # String |
|
180
214
|
opts = {
|
181
215
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
182
216
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
@@ -184,7 +218,7 @@ opts = {
|
|
184
218
|
|
185
219
|
begin
|
186
220
|
#Inspect a repository version
|
187
|
-
result = api_instance.read(
|
221
|
+
result = api_instance.read(python_python_repository_version_href, opts)
|
188
222
|
p result
|
189
223
|
rescue PulpPythonClient::ApiError => e
|
190
224
|
puts "Exception when calling RepositoriesPythonVersionsApi->read: #{e}"
|
@@ -196,17 +230,17 @@ end
|
|
196
230
|
|
197
231
|
Name | Type | Description | Notes
|
198
232
|
------------- | ------------- | ------------- | -------------
|
199
|
-
**
|
233
|
+
**python_python_repository_version_href** | **String**| |
|
200
234
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
201
235
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
202
236
|
|
203
237
|
### Return type
|
204
238
|
|
205
|
-
[**
|
239
|
+
[**RepositoryVersionResponse**](RepositoryVersionResponse.md)
|
206
240
|
|
207
241
|
### Authorization
|
208
242
|
|
209
|
-
[
|
243
|
+
[basicAuth](../README.md#basicAuth)
|
210
244
|
|
211
245
|
### HTTP request headers
|
212
246
|
|
@@ -216,7 +250,7 @@ Name | Type | Description | Notes
|
|
216
250
|
|
217
251
|
## repair
|
218
252
|
|
219
|
-
> AsyncOperationResponse repair(
|
253
|
+
> AsyncOperationResponse repair(python_python_repository_version_href, repository_version)
|
220
254
|
|
221
255
|
|
222
256
|
|
@@ -229,17 +263,17 @@ Trigger an asynchronous task to repair a repositroy version.
|
|
229
263
|
require 'pulp_python_client'
|
230
264
|
# setup authorization
|
231
265
|
PulpPythonClient.configure do |config|
|
232
|
-
# Configure HTTP basic authorization:
|
266
|
+
# Configure HTTP basic authorization: basicAuth
|
233
267
|
config.username = 'YOUR USERNAME'
|
234
268
|
config.password = 'YOUR PASSWORD'
|
235
269
|
end
|
236
270
|
|
237
271
|
api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
|
238
|
-
|
239
|
-
|
272
|
+
python_python_repository_version_href = 'python_python_repository_version_href_example' # String |
|
273
|
+
repository_version = PulpPythonClient::RepositoryVersion.new # RepositoryVersion |
|
240
274
|
|
241
275
|
begin
|
242
|
-
result = api_instance.repair(
|
276
|
+
result = api_instance.repair(python_python_repository_version_href, repository_version)
|
243
277
|
p result
|
244
278
|
rescue PulpPythonClient::ApiError => e
|
245
279
|
puts "Exception when calling RepositoriesPythonVersionsApi->repair: #{e}"
|
@@ -251,8 +285,8 @@ end
|
|
251
285
|
|
252
286
|
Name | Type | Description | Notes
|
253
287
|
------------- | ------------- | ------------- | -------------
|
254
|
-
**
|
255
|
-
**
|
288
|
+
**python_python_repository_version_href** | **String**| |
|
289
|
+
**repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
|
256
290
|
|
257
291
|
### Return type
|
258
292
|
|
@@ -260,10 +294,10 @@ Name | Type | Description | Notes
|
|
260
294
|
|
261
295
|
### Authorization
|
262
296
|
|
263
|
-
[
|
297
|
+
[basicAuth](../README.md#basicAuth)
|
264
298
|
|
265
299
|
### HTTP request headers
|
266
300
|
|
267
|
-
- **Content-Type**: application/json
|
301
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
268
302
|
- **Accept**: application/json
|
269
303
|
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**add_content_units** | **Array<
|
8
|
-
**remove_content_units** | **Array<
|
7
|
+
**add_content_units** | **Array<Object>** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
|
8
|
+
**remove_content_units** | **Array<Object>** | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
|
9
9
|
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
data/docs/RepositorySyncURL.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**remote** | **String** | A
|
7
|
+
**remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
|
8
8
|
**mirror** | **Boolean** | If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only. | [optional] [default to false]
|
9
9
|
|
10
10
|
## Code Sample
|
data/docs/RepositoryVersion.md
CHANGED
@@ -4,22 +4,14 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**number** | **Integer** | | [optional] [readonly]
|
10
7
|
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
11
|
-
**content_summary** | [**ContentSummary**](ContentSummary.md) | | [optional]
|
12
8
|
|
13
9
|
## Code Sample
|
14
10
|
|
15
11
|
```ruby
|
16
12
|
require 'PulpPythonClient'
|
17
13
|
|
18
|
-
instance = PulpPythonClient::RepositoryVersion.new(
|
19
|
-
pulp_created: null,
|
20
|
-
number: null,
|
21
|
-
base_version: null,
|
22
|
-
content_summary: null)
|
14
|
+
instance = PulpPythonClient::RepositoryVersion.new(base_version: null)
|
23
15
|
```
|
24
16
|
|
25
17
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# PulpPythonClient::
|
1
|
+
# PulpPythonClient::RepositoryVersionResponse
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -8,14 +8,14 @@ Name | Type | Description | Notes
|
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
9
|
**number** | **Integer** | | [optional] [readonly]
|
10
10
|
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
11
|
-
**content_summary** | [**
|
11
|
+
**content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
|
12
12
|
|
13
13
|
## Code Sample
|
14
14
|
|
15
15
|
```ruby
|
16
16
|
require 'PulpPythonClient'
|
17
17
|
|
18
|
-
instance = PulpPythonClient::
|
18
|
+
instance = PulpPythonClient::RepositoryVersionResponse.new(pulp_href: null,
|
19
19
|
pulp_created: null,
|
20
20
|
number: null,
|
21
21
|
base_version: null,
|
data/lib/pulp_python_client.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -19,26 +19,32 @@ require 'pulp_python_client/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'pulp_python_client/models/async_operation_response'
|
21
21
|
require 'pulp_python_client/models/content_summary'
|
22
|
+
require 'pulp_python_client/models/content_summary_response'
|
22
23
|
require 'pulp_python_client/models/inline_response200'
|
23
24
|
require 'pulp_python_client/models/inline_response2001'
|
24
25
|
require 'pulp_python_client/models/inline_response2002'
|
25
26
|
require 'pulp_python_client/models/inline_response2003'
|
26
27
|
require 'pulp_python_client/models/inline_response2004'
|
27
28
|
require 'pulp_python_client/models/inline_response2005'
|
28
|
-
require 'pulp_python_client/models/
|
29
|
+
require 'pulp_python_client/models/patchedpython_python_distribution'
|
30
|
+
require 'pulp_python_client/models/patchedpython_python_remote'
|
31
|
+
require 'pulp_python_client/models/patchedpython_python_repository'
|
32
|
+
require 'pulp_python_client/models/policy_enum'
|
33
|
+
require 'pulp_python_client/models/python_bander_remote'
|
29
34
|
require 'pulp_python_client/models/python_python_distribution'
|
30
|
-
require 'pulp_python_client/models/
|
31
|
-
require 'pulp_python_client/models/
|
35
|
+
require 'pulp_python_client/models/python_python_distribution_response'
|
36
|
+
require 'pulp_python_client/models/python_python_package_content'
|
37
|
+
require 'pulp_python_client/models/python_python_package_content_response'
|
32
38
|
require 'pulp_python_client/models/python_python_publication'
|
33
|
-
require 'pulp_python_client/models/
|
39
|
+
require 'pulp_python_client/models/python_python_publication_response'
|
34
40
|
require 'pulp_python_client/models/python_python_remote'
|
35
|
-
require 'pulp_python_client/models/
|
41
|
+
require 'pulp_python_client/models/python_python_remote_response'
|
36
42
|
require 'pulp_python_client/models/python_python_repository'
|
37
|
-
require 'pulp_python_client/models/
|
43
|
+
require 'pulp_python_client/models/python_python_repository_response'
|
38
44
|
require 'pulp_python_client/models/repository_add_remove_content'
|
39
45
|
require 'pulp_python_client/models/repository_sync_url'
|
40
46
|
require 'pulp_python_client/models/repository_version'
|
41
|
-
require 'pulp_python_client/models/
|
47
|
+
require 'pulp_python_client/models/repository_version_response'
|
42
48
|
|
43
49
|
# APIs
|
44
50
|
require 'pulp_python_client/api/content_packages_api'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -22,7 +22,6 @@ module PulpPythonClient
|
|
22
22
|
# Create a python package content
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
25
|
-
# @param filename [String] The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}
|
26
25
|
# @param [Hash] opts the optional parameters
|
27
26
|
# @option opts [String] :artifact Artifact file representing the physical content
|
28
27
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
@@ -41,21 +40,20 @@ module PulpPythonClient
|
|
41
40
|
# @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
|
42
41
|
# @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
43
42
|
# @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
|
44
|
-
# @option opts [
|
45
|
-
# @option opts [
|
46
|
-
# @option opts [
|
47
|
-
# @option opts [
|
48
|
-
# @option opts [
|
43
|
+
# @option opts [Object] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
|
44
|
+
# @option opts [Object] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
|
45
|
+
# @option opts [Object] :obsoletes_dist A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
|
46
|
+
# @option opts [Object] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
|
47
|
+
# @option opts [Object] :classifiers A JSON list containing classification values for a Python package.
|
49
48
|
# @return [AsyncOperationResponse]
|
50
|
-
def create(relative_path,
|
51
|
-
data, _status_code, _headers = create_with_http_info(relative_path,
|
49
|
+
def create(relative_path, opts = {})
|
50
|
+
data, _status_code, _headers = create_with_http_info(relative_path, opts)
|
52
51
|
data
|
53
52
|
end
|
54
53
|
|
55
54
|
# Create a python package content
|
56
55
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
57
56
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
58
|
-
# @param filename [String] The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}
|
59
57
|
# @param [Hash] opts the optional parameters
|
60
58
|
# @option opts [String] :artifact Artifact file representing the physical content
|
61
59
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
@@ -74,13 +72,13 @@ module PulpPythonClient
|
|
74
72
|
# @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
|
75
73
|
# @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
76
74
|
# @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
|
77
|
-
# @option opts [
|
78
|
-
# @option opts [
|
79
|
-
# @option opts [
|
80
|
-
# @option opts [
|
81
|
-
# @option opts [
|
75
|
+
# @option opts [Object] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
|
76
|
+
# @option opts [Object] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
|
77
|
+
# @option opts [Object] :obsoletes_dist A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
|
78
|
+
# @option opts [Object] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
|
79
|
+
# @option opts [Object] :classifiers A JSON list containing classification values for a Python package.
|
82
80
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
83
|
-
def create_with_http_info(relative_path,
|
81
|
+
def create_with_http_info(relative_path, opts = {})
|
84
82
|
if @api_client.config.debugging
|
85
83
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.create ...'
|
86
84
|
end
|
@@ -88,18 +86,6 @@ module PulpPythonClient
|
|
88
86
|
if @api_client.config.client_side_validation && relative_path.nil?
|
89
87
|
fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentPackagesApi.create"
|
90
88
|
end
|
91
|
-
if @api_client.config.client_side_validation && relative_path.to_s.length < 1
|
92
|
-
fail ArgumentError, 'invalid value for "relative_path" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
93
|
-
end
|
94
|
-
|
95
|
-
# verify the required parameter 'filename' is set
|
96
|
-
if @api_client.config.client_side_validation && filename.nil?
|
97
|
-
fail ArgumentError, "Missing the required parameter 'filename' when calling ContentPackagesApi.create"
|
98
|
-
end
|
99
|
-
if @api_client.config.client_side_validation && filename.to_s.length < 1
|
100
|
-
fail ArgumentError, 'invalid value for "filename" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
101
|
-
end
|
102
|
-
|
103
89
|
# resource path
|
104
90
|
local_var_path = '/pulp/api/v3/content/python/packages/'
|
105
91
|
|
@@ -116,7 +102,6 @@ module PulpPythonClient
|
|
116
102
|
# form parameters
|
117
103
|
form_params = opts[:form_params] || {}
|
118
104
|
form_params['relative_path'] = relative_path
|
119
|
-
form_params['filename'] = filename
|
120
105
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
121
106
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
122
107
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
@@ -147,7 +132,7 @@ module PulpPythonClient
|
|
147
132
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
148
133
|
|
149
134
|
# auth_names
|
150
|
-
auth_names = opts[:auth_names] || ['
|
135
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
151
136
|
|
152
137
|
new_options = opts.merge(
|
153
138
|
:header_params => header_params,
|
@@ -168,23 +153,23 @@ module PulpPythonClient
|
|
168
153
|
# List python package contents
|
169
154
|
# PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
|
170
155
|
# @param [Hash] opts the optional parameters
|
171
|
-
# @option opts [String] :
|
172
|
-
# @option opts [String] :
|
173
|
-
# @option opts [String] :
|
174
|
-
# @option opts [String] :
|
175
|
-
# @option opts [String] :
|
176
|
-
# @option opts [String] :
|
177
|
-
# @option opts [String] :
|
178
|
-
# @option opts [String] :filename Filter results where filename matches value
|
179
|
-
# @option opts [String] :filename__in Filter results where filename is in a comma-separated list of values
|
180
|
-
# @option opts [String] :filename__contains Filter results where filename contains value
|
181
|
-
# @option opts [String] :keywords__in Filter results where keywords is in a comma-separated list of values
|
182
|
-
# @option opts [String] :keywords__contains Filter results where keywords contains value
|
183
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
184
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
185
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
156
|
+
# @option opts [String] :author author
|
157
|
+
# @option opts [String] :author__in author__in
|
158
|
+
# @option opts [String] :filename filename
|
159
|
+
# @option opts [String] :filename__contains filename__contains
|
160
|
+
# @option opts [String] :filename__in filename__in
|
161
|
+
# @option opts [String] :keywords__contains keywords__contains
|
162
|
+
# @option opts [String] :keywords__in keywords__in
|
186
163
|
# @option opts [Integer] :limit Number of results to return per page.
|
164
|
+
# @option opts [String] :name name
|
165
|
+
# @option opts [String] :name__in name__in
|
187
166
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
167
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
168
|
+
# @option opts [String] :packagetype packagetype
|
169
|
+
# @option opts [String] :packagetype__in packagetype__in
|
170
|
+
# @option opts [String] :repository_version repository_version
|
171
|
+
# @option opts [String] :repository_version_added repository_version_added
|
172
|
+
# @option opts [String] :repository_version_removed repository_version_removed
|
188
173
|
# @option opts [String] :fields A list of fields to include in the response.
|
189
174
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
190
175
|
# @return [InlineResponse200]
|
@@ -196,23 +181,23 @@ module PulpPythonClient
|
|
196
181
|
# List python package contents
|
197
182
|
# PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
|
198
183
|
# @param [Hash] opts the optional parameters
|
199
|
-
# @option opts [String] :
|
200
|
-
# @option opts [String] :
|
201
|
-
# @option opts [String] :
|
202
|
-
# @option opts [String] :
|
203
|
-
# @option opts [String] :
|
204
|
-
# @option opts [String] :
|
205
|
-
# @option opts [String] :
|
206
|
-
# @option opts [String] :filename Filter results where filename matches value
|
207
|
-
# @option opts [String] :filename__in Filter results where filename is in a comma-separated list of values
|
208
|
-
# @option opts [String] :filename__contains Filter results where filename contains value
|
209
|
-
# @option opts [String] :keywords__in Filter results where keywords is in a comma-separated list of values
|
210
|
-
# @option opts [String] :keywords__contains Filter results where keywords contains value
|
211
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
212
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
213
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
184
|
+
# @option opts [String] :author author
|
185
|
+
# @option opts [String] :author__in author__in
|
186
|
+
# @option opts [String] :filename filename
|
187
|
+
# @option opts [String] :filename__contains filename__contains
|
188
|
+
# @option opts [String] :filename__in filename__in
|
189
|
+
# @option opts [String] :keywords__contains keywords__contains
|
190
|
+
# @option opts [String] :keywords__in keywords__in
|
214
191
|
# @option opts [Integer] :limit Number of results to return per page.
|
192
|
+
# @option opts [String] :name name
|
193
|
+
# @option opts [String] :name__in name__in
|
215
194
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
195
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
196
|
+
# @option opts [String] :packagetype packagetype
|
197
|
+
# @option opts [String] :packagetype__in packagetype__in
|
198
|
+
# @option opts [String] :repository_version repository_version
|
199
|
+
# @option opts [String] :repository_version_added repository_version_added
|
200
|
+
# @option opts [String] :repository_version_removed repository_version_removed
|
216
201
|
# @option opts [String] :fields A list of fields to include in the response.
|
217
202
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
218
203
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
@@ -220,28 +205,32 @@ module PulpPythonClient
|
|
220
205
|
if @api_client.config.debugging
|
221
206
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.list ...'
|
222
207
|
end
|
208
|
+
allowable_values = ["bdist_dmg", "bdist_dumb", "bdist_egg", "bdist_msi", "bdist_rpm", "bdist_wheel", "bdist_wininst", "sdist"]
|
209
|
+
if @api_client.config.client_side_validation && opts[:'packagetype'] && !allowable_values.include?(opts[:'packagetype'])
|
210
|
+
fail ArgumentError, "invalid value for \"packagetype\", must be one of #{allowable_values}"
|
211
|
+
end
|
223
212
|
# resource path
|
224
213
|
local_var_path = '/pulp/api/v3/content/python/packages/'
|
225
214
|
|
226
215
|
# query parameters
|
227
216
|
query_params = opts[:query_params] || {}
|
228
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
229
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
230
|
-
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
231
217
|
query_params[:'author'] = opts[:'author'] if !opts[:'author'].nil?
|
232
218
|
query_params[:'author__in'] = opts[:'author__in'] if !opts[:'author__in'].nil?
|
233
|
-
query_params[:'packagetype'] = opts[:'packagetype'] if !opts[:'packagetype'].nil?
|
234
|
-
query_params[:'packagetype__in'] = opts[:'packagetype__in'] if !opts[:'packagetype__in'].nil?
|
235
219
|
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
236
|
-
query_params[:'filename__in'] = opts[:'filename__in'] if !opts[:'filename__in'].nil?
|
237
220
|
query_params[:'filename__contains'] = opts[:'filename__contains'] if !opts[:'filename__contains'].nil?
|
238
|
-
query_params[:'
|
221
|
+
query_params[:'filename__in'] = opts[:'filename__in'] if !opts[:'filename__in'].nil?
|
239
222
|
query_params[:'keywords__contains'] = opts[:'keywords__contains'] if !opts[:'keywords__contains'].nil?
|
223
|
+
query_params[:'keywords__in'] = opts[:'keywords__in'] if !opts[:'keywords__in'].nil?
|
224
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
225
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
226
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
227
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
228
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
229
|
+
query_params[:'packagetype'] = opts[:'packagetype'] if !opts[:'packagetype'].nil?
|
230
|
+
query_params[:'packagetype__in'] = opts[:'packagetype__in'] if !opts[:'packagetype__in'].nil?
|
240
231
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
241
232
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
242
233
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
243
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
244
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
245
234
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
246
235
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
247
236
|
|
@@ -260,7 +249,7 @@ module PulpPythonClient
|
|
260
249
|
return_type = opts[:return_type] || 'InlineResponse200'
|
261
250
|
|
262
251
|
# auth_names
|
263
|
-
auth_names = opts[:auth_names] || ['
|
252
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
264
253
|
|
265
254
|
new_options = opts.merge(
|
266
255
|
:header_params => header_params,
|
@@ -280,33 +269,33 @@ module PulpPythonClient
|
|
280
269
|
|
281
270
|
# Inspect a python package content
|
282
271
|
# PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
|
283
|
-
# @param
|
272
|
+
# @param python_python_package_content_href [String]
|
284
273
|
# @param [Hash] opts the optional parameters
|
285
274
|
# @option opts [String] :fields A list of fields to include in the response.
|
286
275
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
287
|
-
# @return [
|
288
|
-
def read(
|
289
|
-
data, _status_code, _headers = read_with_http_info(
|
276
|
+
# @return [PythonPythonPackageContentResponse]
|
277
|
+
def read(python_python_package_content_href, opts = {})
|
278
|
+
data, _status_code, _headers = read_with_http_info(python_python_package_content_href, opts)
|
290
279
|
data
|
291
280
|
end
|
292
281
|
|
293
282
|
# Inspect a python package content
|
294
283
|
# PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
|
295
|
-
# @param
|
284
|
+
# @param python_python_package_content_href [String]
|
296
285
|
# @param [Hash] opts the optional parameters
|
297
286
|
# @option opts [String] :fields A list of fields to include in the response.
|
298
287
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
299
|
-
# @return [Array<(
|
300
|
-
def read_with_http_info(
|
288
|
+
# @return [Array<(PythonPythonPackageContentResponse, Integer, Hash)>] PythonPythonPackageContentResponse data, response status code and response headers
|
289
|
+
def read_with_http_info(python_python_package_content_href, opts = {})
|
301
290
|
if @api_client.config.debugging
|
302
291
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.read ...'
|
303
292
|
end
|
304
|
-
# verify the required parameter '
|
305
|
-
if @api_client.config.client_side_validation &&
|
306
|
-
fail ArgumentError, "Missing the required parameter '
|
293
|
+
# verify the required parameter 'python_python_package_content_href' is set
|
294
|
+
if @api_client.config.client_side_validation && python_python_package_content_href.nil?
|
295
|
+
fail ArgumentError, "Missing the required parameter 'python_python_package_content_href' when calling ContentPackagesApi.read"
|
307
296
|
end
|
308
297
|
# resource path
|
309
|
-
local_var_path = '{
|
298
|
+
local_var_path = '{python_python_package_content_href}'.sub('{' + 'python_python_package_content_href' + '}', CGI.escape(python_python_package_content_href.to_s).gsub('%2F', '/'))
|
310
299
|
|
311
300
|
# query parameters
|
312
301
|
query_params = opts[:query_params] || {}
|
@@ -325,10 +314,10 @@ module PulpPythonClient
|
|
325
314
|
post_body = opts[:body]
|
326
315
|
|
327
316
|
# return_type
|
328
|
-
return_type = opts[:return_type] || '
|
317
|
+
return_type = opts[:return_type] || 'PythonPythonPackageContentResponse'
|
329
318
|
|
330
319
|
# auth_names
|
331
|
-
auth_names = opts[:auth_names] || ['
|
320
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
332
321
|
|
333
322
|
new_options = opts.merge(
|
334
323
|
:header_params => header_params,
|