pulp_python_client 3.12.5 → 3.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -16
  3. data/docs/AsyncOperationResponse.md +8 -7
  4. data/docs/ContentPackagesApi.md +170 -120
  5. data/docs/ContentSummaryResponse.md +12 -11
  6. data/docs/DistributionsPypiApi.md +385 -182
  7. data/docs/ExcludePlatformsEnum.md +4 -5
  8. data/docs/MyPermissionsResponse.md +8 -7
  9. data/docs/NestedRole.md +12 -11
  10. data/docs/NestedRoleResponse.md +12 -11
  11. data/docs/ObjectRolesResponse.md +8 -7
  12. data/docs/PackageMetadataResponse.md +14 -13
  13. data/docs/PackageTypesEnum.md +4 -5
  14. data/docs/PackageUploadTaskResponse.md +12 -11
  15. data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
  16. data/docs/PaginatedpythonPythonDistributionResponseList.md +14 -13
  17. data/docs/PaginatedpythonPythonPackageContentResponseList.md +14 -13
  18. data/docs/PaginatedpythonPythonPublicationResponseList.md +14 -13
  19. data/docs/PaginatedpythonPythonRemoteResponseList.md +14 -13
  20. data/docs/PaginatedpythonPythonRepositoryResponseList.md +14 -13
  21. data/docs/PatchedpythonPythonDistribution.md +24 -23
  22. data/docs/PatchedpythonPythonRemote.md +60 -59
  23. data/docs/PatchedpythonPythonRepository.md +18 -17
  24. data/docs/PolicyEnum.md +4 -5
  25. data/docs/PublicationsPypiApi.md +267 -130
  26. data/docs/PypiApi.md +33 -17
  27. data/docs/PypiLegacyApi.md +34 -18
  28. data/docs/PypiMetadataApi.md +34 -18
  29. data/docs/PypiSimpleApi.md +95 -45
  30. data/docs/PythonPythonDistribution.md +24 -23
  31. data/docs/PythonPythonDistributionResponse.md +36 -35
  32. data/docs/PythonPythonPackageContentResponse.md +70 -69
  33. data/docs/PythonPythonPublication.md +10 -9
  34. data/docs/PythonPythonPublicationResponse.md +20 -19
  35. data/docs/PythonPythonRemote.md +60 -59
  36. data/docs/PythonPythonRemoteResponse.md +60 -59
  37. data/docs/PythonPythonRemoteResponseHiddenFieldsInner.md +20 -0
  38. data/docs/PythonPythonRepository.md +18 -17
  39. data/docs/PythonPythonRepositoryResponse.md +30 -29
  40. data/docs/RemotesPythonApi.md +420 -198
  41. data/docs/Repair.md +8 -7
  42. data/docs/RepositoriesPythonApi.md +444 -207
  43. data/docs/RepositoriesPythonVersionsApi.md +152 -82
  44. data/docs/RepositoryAddRemoveContent.md +12 -11
  45. data/docs/RepositorySyncURL.md +10 -9
  46. data/docs/RepositoryVersionResponse.md +22 -21
  47. data/docs/SetLabel.md +10 -9
  48. data/docs/SetLabelResponse.md +10 -9
  49. data/docs/SummaryResponse.md +12 -11
  50. data/docs/UnsetLabel.md +8 -7
  51. data/docs/UnsetLabelResponse.md +10 -9
  52. data/lib/pulp_python_client/api/content_packages_api.rb +21 -15
  53. data/lib/pulp_python_client/api/distributions_pypi_api.rb +89 -56
  54. data/lib/pulp_python_client/api/publications_pypi_api.rb +67 -47
  55. data/lib/pulp_python_client/api/pypi_api.rb +6 -5
  56. data/lib/pulp_python_client/api/pypi_legacy_api.rb +11 -7
  57. data/lib/pulp_python_client/api/pypi_metadata_api.rb +6 -5
  58. data/lib/pulp_python_client/api/pypi_simple_api.rb +19 -13
  59. data/lib/pulp_python_client/api/remotes_python_api.rb +113 -73
  60. data/lib/pulp_python_client/api/repositories_python_api.rb +107 -66
  61. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +40 -30
  62. data/lib/pulp_python_client/api_client.rb +137 -102
  63. data/lib/pulp_python_client/api_error.rb +2 -1
  64. data/lib/pulp_python_client/configuration.rb +162 -21
  65. data/lib/pulp_python_client/models/async_operation_response.rb +32 -22
  66. data/lib/pulp_python_client/models/content_summary_response.rb +36 -22
  67. data/lib/pulp_python_client/models/exclude_platforms_enum.rb +8 -4
  68. data/lib/pulp_python_client/models/my_permissions_response.rb +32 -22
  69. data/lib/pulp_python_client/models/nested_role.rb +32 -22
  70. data/lib/pulp_python_client/models/nested_role_response.rb +32 -22
  71. data/lib/pulp_python_client/models/object_roles_response.rb +32 -22
  72. data/lib/pulp_python_client/models/package_metadata_response.rb +41 -37
  73. data/lib/pulp_python_client/models/package_types_enum.rb +8 -4
  74. data/lib/pulp_python_client/models/package_upload_task_response.rb +37 -23
  75. data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +34 -22
  76. data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +34 -22
  77. data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +34 -22
  78. data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +34 -22
  79. data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +34 -22
  80. data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +34 -22
  81. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +40 -24
  82. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +82 -44
  83. data/lib/pulp_python_client/models/patchedpython_python_repository.rb +35 -23
  84. data/lib/pulp_python_client/models/policy_enum.rb +8 -4
  85. data/lib/pulp_python_client/models/python_python_distribution.rb +34 -22
  86. data/lib/pulp_python_client/models/python_python_distribution_response.rb +36 -24
  87. data/lib/pulp_python_client/models/python_python_package_content_response.rb +38 -24
  88. data/lib/pulp_python_client/models/python_python_publication.rb +30 -22
  89. data/lib/pulp_python_client/models/python_python_publication_response.rb +32 -24
  90. data/lib/pulp_python_client/models/python_python_remote.rb +76 -42
  91. data/lib/pulp_python_client/models/python_python_remote_response.rb +79 -45
  92. data/lib/pulp_python_client/models/{python_python_remote_response_hidden_fields.rb → python_python_remote_response_hidden_fields_inner.rb} +37 -25
  93. data/lib/pulp_python_client/models/python_python_repository.rb +32 -22
  94. data/lib/pulp_python_client/models/python_python_repository_response.rb +34 -24
  95. data/lib/pulp_python_client/models/repair.rb +30 -22
  96. data/lib/pulp_python_client/models/repository_add_remove_content.rb +30 -22
  97. data/lib/pulp_python_client/models/repository_sync_url.rb +30 -22
  98. data/lib/pulp_python_client/models/repository_version_response.rb +32 -24
  99. data/lib/pulp_python_client/models/set_label.rb +34 -22
  100. data/lib/pulp_python_client/models/set_label_response.rb +34 -22
  101. data/lib/pulp_python_client/models/summary_response.rb +36 -22
  102. data/lib/pulp_python_client/models/unset_label.rb +32 -22
  103. data/lib/pulp_python_client/models/unset_label_response.rb +32 -22
  104. data/lib/pulp_python_client/version.rb +2 -2
  105. data/lib/pulp_python_client.rb +2 -5
  106. data/pulp_python_client.gemspec +9 -6
  107. data/spec/api/content_packages_api_spec.rb +4 -4
  108. data/spec/api/distributions_pypi_api_spec.rb +13 -13
  109. data/spec/api/publications_pypi_api_spec.rb +16 -15
  110. data/spec/api/pypi_api_spec.rb +2 -2
  111. data/spec/api/pypi_legacy_api_spec.rb +2 -2
  112. data/spec/api/pypi_metadata_api_spec.rb +2 -2
  113. data/spec/api/pypi_simple_api_spec.rb +4 -4
  114. data/spec/api/remotes_python_api_spec.rb +21 -20
  115. data/spec/api/repositories_python_api_spec.rb +15 -15
  116. data/spec/api/repositories_python_versions_api_spec.rb +12 -11
  117. data/spec/models/async_operation_response_spec.rb +7 -12
  118. data/spec/models/content_summary_response_spec.rb +9 -14
  119. data/spec/models/exclude_platforms_enum_spec.rb +6 -11
  120. data/spec/models/my_permissions_response_spec.rb +7 -12
  121. data/spec/models/nested_role_response_spec.rb +9 -14
  122. data/spec/models/nested_role_spec.rb +9 -14
  123. data/spec/models/object_roles_response_spec.rb +7 -12
  124. data/spec/models/package_metadata_response_spec.rb +10 -15
  125. data/spec/models/package_types_enum_spec.rb +6 -11
  126. data/spec/models/package_upload_task_response_spec.rb +9 -14
  127. data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
  128. data/spec/models/paginatedpython_python_distribution_response_list_spec.rb +10 -15
  129. data/spec/models/paginatedpython_python_package_content_response_list_spec.rb +10 -15
  130. data/spec/models/paginatedpython_python_publication_response_list_spec.rb +10 -15
  131. data/spec/models/paginatedpython_python_remote_response_list_spec.rb +10 -15
  132. data/spec/models/paginatedpython_python_repository_response_list_spec.rb +10 -15
  133. data/spec/models/patchedpython_python_distribution_spec.rb +15 -20
  134. data/spec/models/patchedpython_python_remote_spec.rb +33 -38
  135. data/spec/models/patchedpython_python_repository_spec.rb +12 -17
  136. data/spec/models/policy_enum_spec.rb +6 -11
  137. data/spec/models/python_python_distribution_response_spec.rb +21 -26
  138. data/spec/models/python_python_distribution_spec.rb +15 -20
  139. data/spec/models/python_python_package_content_response_spec.rb +38 -43
  140. data/spec/models/python_python_publication_response_spec.rb +13 -18
  141. data/spec/models/python_python_publication_spec.rb +8 -13
  142. data/spec/models/{python_python_remote_response_hidden_fields_spec.rb → python_python_remote_response_hidden_fields_inner_spec.rb} +11 -16
  143. data/spec/models/python_python_remote_response_spec.rb +33 -38
  144. data/spec/models/python_python_remote_spec.rb +33 -38
  145. data/spec/models/python_python_repository_response_spec.rb +18 -23
  146. data/spec/models/python_python_repository_spec.rb +12 -17
  147. data/spec/models/repair_spec.rb +7 -12
  148. data/spec/models/repository_add_remove_content_spec.rb +9 -14
  149. data/spec/models/repository_sync_url_spec.rb +8 -13
  150. data/spec/models/repository_version_response_spec.rb +14 -19
  151. data/spec/models/set_label_response_spec.rb +8 -13
  152. data/spec/models/set_label_spec.rb +8 -13
  153. data/spec/models/summary_response_spec.rb +9 -14
  154. data/spec/models/unset_label_response_spec.rb +8 -13
  155. data/spec/models/unset_label_spec.rb +7 -12
  156. data/spec/spec_helper.rb +1 -1
  157. metadata +81 -69
  158. data/docs/PackageUpload.md +0 -21
  159. data/docs/PythonBanderRemote.md +0 -21
  160. data/docs/PythonPythonPackageContent.md +0 -71
  161. data/docs/PythonPythonRemoteResponseHiddenFields.md +0 -19
  162. data/lib/pulp_python_client/models/package_upload.rb +0 -283
  163. data/lib/pulp_python_client/models/python_bander_remote.rb +0 -257
  164. data/lib/pulp_python_client/models/python_python_package_content.rb +0 -534
  165. data/spec/api_client_spec.rb +0 -188
  166. data/spec/configuration_spec.rb +0 -42
  167. data/spec/models/package_upload_spec.rb +0 -53
  168. data/spec/models/python_bander_remote_spec.rb +0 -53
  169. data/spec/models/python_python_package_content_spec.rb +0 -203
@@ -6,7 +6,7 @@
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
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -65,7 +65,7 @@ module PulpPythonClient
65
65
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
66
66
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
67
67
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
68
- # @option opts [String] :sha256 The SHA256 digest of this package.
68
+ # @option opts [String] :sha256 The SHA256 digest of this package. (default to '')
69
69
  # @option opts [String] :summary A one-line summary of what the package does.
70
70
  # @option opts [String] :description A longer description of the package that can run to several paragraphs.
71
71
  # @option opts [String] :description_content_type A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.
@@ -117,9 +117,12 @@ module PulpPythonClient
117
117
  # header parameters
118
118
  header_params = opts[:header_params] || {}
119
119
  # HTTP header 'Accept' (if needed)
120
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
120
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
121
121
  # HTTP header 'Content-Type'
122
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
122
+ content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
123
+ if !content_type.nil?
124
+ header_params['Content-Type'] = content_type
125
+ end
123
126
 
124
127
  # form parameters
125
128
  form_params = opts[:form_params] || {}
@@ -153,15 +156,16 @@ module PulpPythonClient
153
156
  form_params['classifiers'] = opts[:'classifiers'] if !opts[:'classifiers'].nil?
154
157
 
155
158
  # http body (model)
156
- post_body = opts[:body]
159
+ post_body = opts[:debug_body]
157
160
 
158
161
  # return_type
159
- return_type = opts[:return_type] || 'AsyncOperationResponse'
162
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
160
163
 
161
164
  # auth_names
162
- auth_names = opts[:auth_names] || ['basicAuth']
165
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
163
166
 
164
167
  new_options = opts.merge(
168
+ :operation => :"ContentPackagesApi.create",
165
169
  :header_params => header_params,
166
170
  :query_params => query_params,
167
171
  :form_params => form_params,
@@ -313,21 +317,22 @@ module PulpPythonClient
313
317
  # header parameters
314
318
  header_params = opts[:header_params] || {}
315
319
  # HTTP header 'Accept' (if needed)
316
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
320
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
317
321
 
318
322
  # form parameters
319
323
  form_params = opts[:form_params] || {}
320
324
 
321
325
  # http body (model)
322
- post_body = opts[:body]
326
+ post_body = opts[:debug_body]
323
327
 
324
328
  # return_type
325
- return_type = opts[:return_type] || 'PaginatedpythonPythonPackageContentResponseList'
329
+ return_type = opts[:debug_return_type] || 'PaginatedpythonPythonPackageContentResponseList'
326
330
 
327
331
  # auth_names
328
- auth_names = opts[:auth_names] || ['basicAuth']
332
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
329
333
 
330
334
  new_options = opts.merge(
335
+ :operation => :"ContentPackagesApi.list",
331
336
  :header_params => header_params,
332
337
  :query_params => query_params,
333
338
  :form_params => form_params,
@@ -381,21 +386,22 @@ module PulpPythonClient
381
386
  # header parameters
382
387
  header_params = opts[:header_params] || {}
383
388
  # HTTP header 'Accept' (if needed)
384
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
389
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
385
390
 
386
391
  # form parameters
387
392
  form_params = opts[:form_params] || {}
388
393
 
389
394
  # http body (model)
390
- post_body = opts[:body]
395
+ post_body = opts[:debug_body]
391
396
 
392
397
  # return_type
393
- return_type = opts[:return_type] || 'PythonPythonPackageContentResponse'
398
+ return_type = opts[:debug_return_type] || 'PythonPythonPackageContentResponse'
394
399
 
395
400
  # auth_names
396
- auth_names = opts[:auth_names] || ['basicAuth']
401
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
397
402
 
398
403
  new_options = opts.merge(
404
+ :operation => :"ContentPackagesApi.read",
399
405
  :header_params => header_params,
400
406
  :query_params => query_params,
401
407
  :form_params => form_params,
@@ -6,7 +6,7 @@
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
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -57,23 +57,27 @@ module PulpPythonClient
57
57
  # header parameters
58
58
  header_params = opts[:header_params] || {}
59
59
  # HTTP header 'Accept' (if needed)
60
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
61
61
  # HTTP header 'Content-Type'
62
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
62
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
63
+ if !content_type.nil?
64
+ header_params['Content-Type'] = content_type
65
+ end
63
66
 
64
67
  # form parameters
65
68
  form_params = opts[:form_params] || {}
66
69
 
67
70
  # http body (model)
68
- post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
71
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
69
72
 
70
73
  # return_type
71
- return_type = opts[:return_type] || 'NestedRoleResponse'
74
+ return_type = opts[:debug_return_type] || 'NestedRoleResponse'
72
75
 
73
76
  # auth_names
74
- auth_names = opts[:auth_names] || ['basicAuth']
77
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
75
78
 
76
79
  new_options = opts.merge(
80
+ :operation => :"DistributionsPypiApi.add_role",
77
81
  :header_params => header_params,
78
82
  :query_params => query_params,
79
83
  :form_params => form_params,
@@ -121,23 +125,27 @@ module PulpPythonClient
121
125
  # header parameters
122
126
  header_params = opts[:header_params] || {}
123
127
  # HTTP header 'Accept' (if needed)
124
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
128
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
125
129
  # HTTP header 'Content-Type'
126
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
130
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
131
+ if !content_type.nil?
132
+ header_params['Content-Type'] = content_type
133
+ end
127
134
 
128
135
  # form parameters
129
136
  form_params = opts[:form_params] || {}
130
137
 
131
138
  # http body (model)
132
- post_body = opts[:body] || @api_client.object_to_http_body(python_python_distribution)
139
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(python_python_distribution)
133
140
 
134
141
  # return_type
135
- return_type = opts[:return_type] || 'AsyncOperationResponse'
142
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
136
143
 
137
144
  # auth_names
138
- auth_names = opts[:auth_names] || ['basicAuth']
145
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
139
146
 
140
147
  new_options = opts.merge(
148
+ :operation => :"DistributionsPypiApi.create",
141
149
  :header_params => header_params,
142
150
  :query_params => query_params,
143
151
  :form_params => form_params,
@@ -185,21 +193,22 @@ module PulpPythonClient
185
193
  # header parameters
186
194
  header_params = opts[:header_params] || {}
187
195
  # HTTP header 'Accept' (if needed)
188
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
196
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
189
197
 
190
198
  # form parameters
191
199
  form_params = opts[:form_params] || {}
192
200
 
193
201
  # http body (model)
194
- post_body = opts[:body]
202
+ post_body = opts[:debug_body]
195
203
 
196
204
  # return_type
197
- return_type = opts[:return_type] || 'AsyncOperationResponse'
205
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
198
206
 
199
207
  # auth_names
200
- auth_names = opts[:auth_names] || ['basicAuth']
208
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
201
209
 
202
210
  new_options = opts.merge(
211
+ :operation => :"DistributionsPypiApi.delete",
203
212
  :header_params => header_params,
204
213
  :query_params => query_params,
205
214
  :form_params => form_params,
@@ -323,21 +332,22 @@ module PulpPythonClient
323
332
  # header parameters
324
333
  header_params = opts[:header_params] || {}
325
334
  # HTTP header 'Accept' (if needed)
326
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
335
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
327
336
 
328
337
  # form parameters
329
338
  form_params = opts[:form_params] || {}
330
339
 
331
340
  # http body (model)
332
- post_body = opts[:body]
341
+ post_body = opts[:debug_body]
333
342
 
334
343
  # return_type
335
- return_type = opts[:return_type] || 'PaginatedpythonPythonDistributionResponseList'
344
+ return_type = opts[:debug_return_type] || 'PaginatedpythonPythonDistributionResponseList'
336
345
 
337
346
  # auth_names
338
- auth_names = opts[:auth_names] || ['basicAuth']
347
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
339
348
 
340
349
  new_options = opts.merge(
350
+ :operation => :"DistributionsPypiApi.list",
341
351
  :header_params => header_params,
342
352
  :query_params => query_params,
343
353
  :form_params => form_params,
@@ -391,21 +401,22 @@ module PulpPythonClient
391
401
  # header parameters
392
402
  header_params = opts[:header_params] || {}
393
403
  # HTTP header 'Accept' (if needed)
394
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
404
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
395
405
 
396
406
  # form parameters
397
407
  form_params = opts[:form_params] || {}
398
408
 
399
409
  # http body (model)
400
- post_body = opts[:body]
410
+ post_body = opts[:debug_body]
401
411
 
402
412
  # return_type
403
- return_type = opts[:return_type] || 'ObjectRolesResponse'
413
+ return_type = opts[:debug_return_type] || 'ObjectRolesResponse'
404
414
 
405
415
  # auth_names
406
- auth_names = opts[:auth_names] || ['basicAuth']
416
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
407
417
 
408
418
  new_options = opts.merge(
419
+ :operation => :"DistributionsPypiApi.list_roles",
409
420
  :header_params => header_params,
410
421
  :query_params => query_params,
411
422
  :form_params => form_params,
@@ -459,21 +470,22 @@ module PulpPythonClient
459
470
  # header parameters
460
471
  header_params = opts[:header_params] || {}
461
472
  # HTTP header 'Accept' (if needed)
462
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
473
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
463
474
 
464
475
  # form parameters
465
476
  form_params = opts[:form_params] || {}
466
477
 
467
478
  # http body (model)
468
- post_body = opts[:body]
479
+ post_body = opts[:debug_body]
469
480
 
470
481
  # return_type
471
- return_type = opts[:return_type] || 'MyPermissionsResponse'
482
+ return_type = opts[:debug_return_type] || 'MyPermissionsResponse'
472
483
 
473
484
  # auth_names
474
- auth_names = opts[:auth_names] || ['basicAuth']
485
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
475
486
 
476
487
  new_options = opts.merge(
488
+ :operation => :"DistributionsPypiApi.my_permissions",
477
489
  :header_params => header_params,
478
490
  :query_params => query_params,
479
491
  :form_params => form_params,
@@ -527,23 +539,27 @@ module PulpPythonClient
527
539
  # header parameters
528
540
  header_params = opts[:header_params] || {}
529
541
  # HTTP header 'Accept' (if needed)
530
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
542
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
531
543
  # HTTP header 'Content-Type'
532
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
544
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
545
+ if !content_type.nil?
546
+ header_params['Content-Type'] = content_type
547
+ end
533
548
 
534
549
  # form parameters
535
550
  form_params = opts[:form_params] || {}
536
551
 
537
552
  # http body (model)
538
- post_body = opts[:body] || @api_client.object_to_http_body(patchedpython_python_distribution)
553
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedpython_python_distribution)
539
554
 
540
555
  # return_type
541
- return_type = opts[:return_type] || 'AsyncOperationResponse'
556
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
542
557
 
543
558
  # auth_names
544
- auth_names = opts[:auth_names] || ['basicAuth']
559
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
545
560
 
546
561
  new_options = opts.merge(
562
+ :operation => :"DistributionsPypiApi.partial_update",
547
563
  :header_params => header_params,
548
564
  :query_params => query_params,
549
565
  :form_params => form_params,
@@ -597,21 +613,22 @@ module PulpPythonClient
597
613
  # header parameters
598
614
  header_params = opts[:header_params] || {}
599
615
  # HTTP header 'Accept' (if needed)
600
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
616
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
601
617
 
602
618
  # form parameters
603
619
  form_params = opts[:form_params] || {}
604
620
 
605
621
  # http body (model)
606
- post_body = opts[:body]
622
+ post_body = opts[:debug_body]
607
623
 
608
624
  # return_type
609
- return_type = opts[:return_type] || 'PythonPythonDistributionResponse'
625
+ return_type = opts[:debug_return_type] || 'PythonPythonDistributionResponse'
610
626
 
611
627
  # auth_names
612
- auth_names = opts[:auth_names] || ['basicAuth']
628
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
613
629
 
614
630
  new_options = opts.merge(
631
+ :operation => :"DistributionsPypiApi.read",
615
632
  :header_params => header_params,
616
633
  :query_params => query_params,
617
634
  :form_params => form_params,
@@ -665,23 +682,27 @@ module PulpPythonClient
665
682
  # header parameters
666
683
  header_params = opts[:header_params] || {}
667
684
  # HTTP header 'Accept' (if needed)
668
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
685
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
669
686
  # HTTP header 'Content-Type'
670
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
687
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
688
+ if !content_type.nil?
689
+ header_params['Content-Type'] = content_type
690
+ end
671
691
 
672
692
  # form parameters
673
693
  form_params = opts[:form_params] || {}
674
694
 
675
695
  # http body (model)
676
- post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
696
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
677
697
 
678
698
  # return_type
679
- return_type = opts[:return_type] || 'NestedRoleResponse'
699
+ return_type = opts[:debug_return_type] || 'NestedRoleResponse'
680
700
 
681
701
  # auth_names
682
- auth_names = opts[:auth_names] || ['basicAuth']
702
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
683
703
 
684
704
  new_options = opts.merge(
705
+ :operation => :"DistributionsPypiApi.remove_role",
685
706
  :header_params => header_params,
686
707
  :query_params => query_params,
687
708
  :form_params => form_params,
@@ -735,23 +756,27 @@ module PulpPythonClient
735
756
  # header parameters
736
757
  header_params = opts[:header_params] || {}
737
758
  # HTTP header 'Accept' (if needed)
738
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
759
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
739
760
  # HTTP header 'Content-Type'
740
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
761
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
762
+ if !content_type.nil?
763
+ header_params['Content-Type'] = content_type
764
+ end
741
765
 
742
766
  # form parameters
743
767
  form_params = opts[:form_params] || {}
744
768
 
745
769
  # http body (model)
746
- post_body = opts[:body] || @api_client.object_to_http_body(set_label)
770
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
747
771
 
748
772
  # return_type
749
- return_type = opts[:return_type] || 'SetLabelResponse'
773
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
750
774
 
751
775
  # auth_names
752
- auth_names = opts[:auth_names] || ['basicAuth']
776
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
753
777
 
754
778
  new_options = opts.merge(
779
+ :operation => :"DistributionsPypiApi.set_label",
755
780
  :header_params => header_params,
756
781
  :query_params => query_params,
757
782
  :form_params => form_params,
@@ -805,23 +830,27 @@ module PulpPythonClient
805
830
  # header parameters
806
831
  header_params = opts[:header_params] || {}
807
832
  # HTTP header 'Accept' (if needed)
808
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
833
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
809
834
  # HTTP header 'Content-Type'
810
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
835
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
836
+ if !content_type.nil?
837
+ header_params['Content-Type'] = content_type
838
+ end
811
839
 
812
840
  # form parameters
813
841
  form_params = opts[:form_params] || {}
814
842
 
815
843
  # http body (model)
816
- post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
844
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
817
845
 
818
846
  # return_type
819
- return_type = opts[:return_type] || 'UnsetLabelResponse'
847
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
820
848
 
821
849
  # auth_names
822
- auth_names = opts[:auth_names] || ['basicAuth']
850
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
823
851
 
824
852
  new_options = opts.merge(
853
+ :operation => :"DistributionsPypiApi.unset_label",
825
854
  :header_params => header_params,
826
855
  :query_params => query_params,
827
856
  :form_params => form_params,
@@ -875,23 +904,27 @@ module PulpPythonClient
875
904
  # header parameters
876
905
  header_params = opts[:header_params] || {}
877
906
  # HTTP header 'Accept' (if needed)
878
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
907
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
879
908
  # HTTP header 'Content-Type'
880
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
909
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
910
+ if !content_type.nil?
911
+ header_params['Content-Type'] = content_type
912
+ end
881
913
 
882
914
  # form parameters
883
915
  form_params = opts[:form_params] || {}
884
916
 
885
917
  # http body (model)
886
- post_body = opts[:body] || @api_client.object_to_http_body(python_python_distribution)
918
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(python_python_distribution)
887
919
 
888
920
  # return_type
889
- return_type = opts[:return_type] || 'AsyncOperationResponse'
921
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
890
922
 
891
923
  # auth_names
892
- auth_names = opts[:auth_names] || ['basicAuth']
924
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
893
925
 
894
926
  new_options = opts.merge(
927
+ :operation => :"DistributionsPypiApi.update",
895
928
  :header_params => header_params,
896
929
  :query_params => query_params,
897
930
  :form_params => form_params,