pulp_gem_client 0.6.1 → 0.7.0

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.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -8
  3. data/docs/AsyncOperationResponse.md +8 -7
  4. data/docs/ContentGemApi.md +268 -66
  5. data/docs/ContentSummaryResponse.md +12 -11
  6. data/docs/DistributionsGemApi.md +388 -183
  7. data/docs/GemGemContentResponse.md +34 -29
  8. data/docs/GemGemDistribution.md +22 -21
  9. data/docs/GemGemDistributionResponse.md +34 -29
  10. data/docs/GemGemPublication.md +10 -9
  11. data/docs/GemGemPublicationResponse.md +18 -15
  12. data/docs/GemGemRemote.md +54 -53
  13. data/docs/GemGemRemoteResponse.md +54 -51
  14. data/docs/GemGemRemoteResponseHiddenFieldsInner.md +20 -0
  15. data/docs/GemGemRepository.md +16 -15
  16. data/docs/GemGemRepositoryResponse.md +28 -25
  17. data/docs/MyPermissionsResponse.md +8 -7
  18. data/docs/NestedRole.md +12 -11
  19. data/docs/NestedRoleResponse.md +12 -11
  20. data/docs/ObjectRolesResponse.md +8 -7
  21. data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
  22. data/docs/PaginatedgemGemContentResponseList.md +14 -13
  23. data/docs/PaginatedgemGemDistributionResponseList.md +14 -13
  24. data/docs/PaginatedgemGemPublicationResponseList.md +14 -13
  25. data/docs/PaginatedgemGemRemoteResponseList.md +14 -13
  26. data/docs/PaginatedgemGemRepositoryResponseList.md +14 -13
  27. data/docs/PatchedgemGemDistribution.md +22 -21
  28. data/docs/PatchedgemGemRemote.md +54 -53
  29. data/docs/PatchedgemGemRepository.md +16 -15
  30. data/docs/PolicyEnum.md +4 -5
  31. data/docs/PublicationsGemApi.md +271 -132
  32. data/docs/RemotesGemApi.md +392 -185
  33. data/docs/Repair.md +8 -7
  34. data/docs/RepositoriesGemApi.md +449 -210
  35. data/docs/RepositoriesGemVersionsApi.md +155 -83
  36. data/docs/RepositoryAddRemoveContent.md +12 -11
  37. data/docs/RepositorySyncURL.md +10 -9
  38. data/docs/RepositoryVersionResponse.md +22 -19
  39. data/docs/SetLabel.md +10 -9
  40. data/docs/SetLabelResponse.md +10 -9
  41. data/docs/UnsetLabel.md +8 -7
  42. data/docs/UnsetLabelResponse.md +10 -9
  43. data/lib/pulp_gem_client/api/content_gem_api.rb +188 -25
  44. data/lib/pulp_gem_client/api/distributions_gem_api.rb +94 -58
  45. data/lib/pulp_gem_client/api/publications_gem_api.rb +81 -58
  46. data/lib/pulp_gem_client/api/remotes_gem_api.rb +109 -70
  47. data/lib/pulp_gem_client/api/repositories_gem_api.rb +116 -72
  48. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +50 -37
  49. data/lib/pulp_gem_client/api_client.rb +137 -102
  50. data/lib/pulp_gem_client/api_error.rb +2 -1
  51. data/lib/pulp_gem_client/configuration.rb +162 -21
  52. data/lib/pulp_gem_client/models/async_operation_response.rb +32 -22
  53. data/lib/pulp_gem_client/models/content_summary_response.rb +36 -22
  54. data/lib/pulp_gem_client/models/gem_gem_content_response.rb +57 -25
  55. data/lib/pulp_gem_client/models/gem_gem_distribution.rb +34 -22
  56. data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +57 -25
  57. data/lib/pulp_gem_client/models/gem_gem_publication.rb +30 -22
  58. data/lib/pulp_gem_client/models/gem_gem_publication_response.rb +43 -25
  59. data/lib/pulp_gem_client/models/gem_gem_remote.rb +56 -22
  60. data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +70 -26
  61. data/lib/pulp_gem_client/models/{gem_gem_remote_response_hidden_fields.rb → gem_gem_remote_response_hidden_fields_inner.rb} +37 -25
  62. data/lib/pulp_gem_client/models/gem_gem_repository.rb +32 -22
  63. data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +45 -25
  64. data/lib/pulp_gem_client/models/my_permissions_response.rb +32 -22
  65. data/lib/pulp_gem_client/models/nested_role.rb +32 -22
  66. data/lib/pulp_gem_client/models/nested_role_response.rb +32 -22
  67. data/lib/pulp_gem_client/models/object_roles_response.rb +32 -22
  68. data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +34 -22
  69. data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +34 -22
  70. data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +34 -22
  71. data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +34 -22
  72. data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +34 -22
  73. data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +34 -22
  74. data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +40 -24
  75. data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +62 -24
  76. data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +35 -23
  77. data/lib/pulp_gem_client/models/policy_enum.rb +8 -4
  78. data/lib/pulp_gem_client/models/repair.rb +30 -22
  79. data/lib/pulp_gem_client/models/repository_add_remove_content.rb +31 -23
  80. data/lib/pulp_gem_client/models/repository_sync_url.rb +30 -22
  81. data/lib/pulp_gem_client/models/repository_version_response.rb +44 -26
  82. data/lib/pulp_gem_client/models/set_label.rb +34 -22
  83. data/lib/pulp_gem_client/models/set_label_response.rb +34 -22
  84. data/lib/pulp_gem_client/models/unset_label.rb +33 -23
  85. data/lib/pulp_gem_client/models/unset_label_response.rb +33 -23
  86. data/lib/pulp_gem_client/version.rb +2 -2
  87. data/lib/pulp_gem_client.rb +2 -3
  88. data/pulp_gem_client.gemspec +9 -6
  89. data/spec/api/content_gem_api_spec.rb +38 -9
  90. data/spec/api/distributions_gem_api_spec.rb +15 -14
  91. data/spec/api/publications_gem_api_spec.rb +22 -20
  92. data/spec/api/remotes_gem_api_spec.rb +22 -20
  93. data/spec/api/repositories_gem_api_spec.rb +19 -18
  94. data/spec/api/repositories_gem_versions_api_spec.rb +16 -14
  95. data/spec/models/async_operation_response_spec.rb +7 -12
  96. data/spec/models/content_summary_response_spec.rb +9 -14
  97. data/spec/models/gem_gem_content_response_spec.rb +30 -23
  98. data/spec/models/gem_gem_distribution_response_spec.rb +30 -23
  99. data/spec/models/gem_gem_distribution_spec.rb +14 -19
  100. data/spec/models/gem_gem_publication_response_spec.rb +17 -16
  101. data/spec/models/gem_gem_publication_spec.rb +8 -13
  102. data/spec/models/{gem_gem_remote_response_hidden_fields_spec.rb → gem_gem_remote_response_hidden_fields_inner_spec.rb} +11 -16
  103. data/spec/models/gem_gem_remote_response_spec.rb +35 -34
  104. data/spec/models/gem_gem_remote_spec.rb +30 -35
  105. data/spec/models/gem_gem_repository_response_spec.rb +22 -21
  106. data/spec/models/gem_gem_repository_spec.rb +11 -16
  107. data/spec/models/my_permissions_response_spec.rb +7 -12
  108. data/spec/models/nested_role_response_spec.rb +9 -14
  109. data/spec/models/nested_role_spec.rb +9 -14
  110. data/spec/models/object_roles_response_spec.rb +7 -12
  111. data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
  112. data/spec/models/paginatedgem_gem_content_response_list_spec.rb +10 -15
  113. data/spec/models/paginatedgem_gem_distribution_response_list_spec.rb +10 -15
  114. data/spec/models/paginatedgem_gem_publication_response_list_spec.rb +10 -15
  115. data/spec/models/paginatedgem_gem_remote_response_list_spec.rb +10 -15
  116. data/spec/models/paginatedgem_gem_repository_response_list_spec.rb +10 -15
  117. data/spec/models/patchedgem_gem_distribution_spec.rb +14 -19
  118. data/spec/models/patchedgem_gem_remote_spec.rb +30 -35
  119. data/spec/models/patchedgem_gem_repository_spec.rb +11 -16
  120. data/spec/models/policy_enum_spec.rb +6 -11
  121. data/spec/models/repair_spec.rb +7 -12
  122. data/spec/models/repository_add_remove_content_spec.rb +9 -14
  123. data/spec/models/repository_sync_url_spec.rb +8 -13
  124. data/spec/models/repository_version_response_spec.rb +19 -18
  125. data/spec/models/set_label_response_spec.rb +8 -13
  126. data/spec/models/set_label_spec.rb +8 -13
  127. data/spec/models/unset_label_response_spec.rb +8 -13
  128. data/spec/models/unset_label_spec.rb +7 -12
  129. data/spec/spec_helper.rb +1 -1
  130. metadata +83 -63
  131. data/docs/GemGemContent.md +0 -21
  132. data/docs/GemGemRemoteResponseHiddenFields.md +0 -19
  133. data/lib/pulp_gem_client/models/gem_gem_content.rb +0 -228
  134. data/spec/api_client_spec.rb +0 -188
  135. data/spec/configuration_spec.rb +0 -42
  136. data/spec/models/gem_gem_content_spec.rb +0 -53
@@ -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 PulpGemClient
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 => :"DistributionsGemApi.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 PulpGemClient
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(gem_gem_distribution)
139
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(gem_gem_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 => :"DistributionsGemApi.create",
141
149
  :header_params => header_params,
142
150
  :query_params => query_params,
143
151
  :form_params => form_params,
@@ -185,21 +193,22 @@ module PulpGemClient
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 => :"DistributionsGemApi.delete",
203
212
  :header_params => header_params,
204
213
  :query_params => query_params,
205
214
  :form_params => form_params,
@@ -234,10 +243,11 @@ module PulpGemClient
234
243
  # @option opts [String] :name__startswith Filter results where name starts with value
235
244
  # @option opts [Integer] :offset The initial index from which to return the results.
236
245
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
246
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
237
247
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
238
248
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
239
249
  # @option opts [String] :pulp_label_select Filter labels by search string
240
- # @option opts [String] :q
250
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
241
251
  # @option opts [String] :repository Filter results where repository matches value
242
252
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
243
253
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -268,10 +278,11 @@ module PulpGemClient
268
278
  # @option opts [String] :name__startswith Filter results where name starts with value
269
279
  # @option opts [Integer] :offset The initial index from which to return the results.
270
280
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
281
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
271
282
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
272
283
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
273
284
  # @option opts [String] :pulp_label_select Filter labels by search string
274
- # @option opts [String] :q
285
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
275
286
  # @option opts [String] :repository Filter results where repository matches value
276
287
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
277
288
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -307,6 +318,7 @@ module PulpGemClient
307
318
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
308
319
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
309
320
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
321
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
310
322
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
311
323
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
312
324
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
@@ -320,21 +332,22 @@ module PulpGemClient
320
332
  # header parameters
321
333
  header_params = opts[:header_params] || {}
322
334
  # HTTP header 'Accept' (if needed)
323
- 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']
324
336
 
325
337
  # form parameters
326
338
  form_params = opts[:form_params] || {}
327
339
 
328
340
  # http body (model)
329
- post_body = opts[:body]
341
+ post_body = opts[:debug_body]
330
342
 
331
343
  # return_type
332
- return_type = opts[:return_type] || 'PaginatedgemGemDistributionResponseList'
344
+ return_type = opts[:debug_return_type] || 'PaginatedgemGemDistributionResponseList'
333
345
 
334
346
  # auth_names
335
- auth_names = opts[:auth_names] || ['basicAuth']
347
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
336
348
 
337
349
  new_options = opts.merge(
350
+ :operation => :"DistributionsGemApi.list",
338
351
  :header_params => header_params,
339
352
  :query_params => query_params,
340
353
  :form_params => form_params,
@@ -388,21 +401,22 @@ module PulpGemClient
388
401
  # header parameters
389
402
  header_params = opts[:header_params] || {}
390
403
  # HTTP header 'Accept' (if needed)
391
- 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']
392
405
 
393
406
  # form parameters
394
407
  form_params = opts[:form_params] || {}
395
408
 
396
409
  # http body (model)
397
- post_body = opts[:body]
410
+ post_body = opts[:debug_body]
398
411
 
399
412
  # return_type
400
- return_type = opts[:return_type] || 'ObjectRolesResponse'
413
+ return_type = opts[:debug_return_type] || 'ObjectRolesResponse'
401
414
 
402
415
  # auth_names
403
- auth_names = opts[:auth_names] || ['basicAuth']
416
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
404
417
 
405
418
  new_options = opts.merge(
419
+ :operation => :"DistributionsGemApi.list_roles",
406
420
  :header_params => header_params,
407
421
  :query_params => query_params,
408
422
  :form_params => form_params,
@@ -456,21 +470,22 @@ module PulpGemClient
456
470
  # header parameters
457
471
  header_params = opts[:header_params] || {}
458
472
  # HTTP header 'Accept' (if needed)
459
- 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']
460
474
 
461
475
  # form parameters
462
476
  form_params = opts[:form_params] || {}
463
477
 
464
478
  # http body (model)
465
- post_body = opts[:body]
479
+ post_body = opts[:debug_body]
466
480
 
467
481
  # return_type
468
- return_type = opts[:return_type] || 'MyPermissionsResponse'
482
+ return_type = opts[:debug_return_type] || 'MyPermissionsResponse'
469
483
 
470
484
  # auth_names
471
- auth_names = opts[:auth_names] || ['basicAuth']
485
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
472
486
 
473
487
  new_options = opts.merge(
488
+ :operation => :"DistributionsGemApi.my_permissions",
474
489
  :header_params => header_params,
475
490
  :query_params => query_params,
476
491
  :form_params => form_params,
@@ -524,23 +539,27 @@ module PulpGemClient
524
539
  # header parameters
525
540
  header_params = opts[:header_params] || {}
526
541
  # HTTP header 'Accept' (if needed)
527
- 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']
528
543
  # HTTP header 'Content-Type'
529
- 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
530
548
 
531
549
  # form parameters
532
550
  form_params = opts[:form_params] || {}
533
551
 
534
552
  # http body (model)
535
- post_body = opts[:body] || @api_client.object_to_http_body(patchedgem_gem_distribution)
553
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedgem_gem_distribution)
536
554
 
537
555
  # return_type
538
- return_type = opts[:return_type] || 'AsyncOperationResponse'
556
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
539
557
 
540
558
  # auth_names
541
- auth_names = opts[:auth_names] || ['basicAuth']
559
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
542
560
 
543
561
  new_options = opts.merge(
562
+ :operation => :"DistributionsGemApi.partial_update",
544
563
  :header_params => header_params,
545
564
  :query_params => query_params,
546
565
  :form_params => form_params,
@@ -594,21 +613,22 @@ module PulpGemClient
594
613
  # header parameters
595
614
  header_params = opts[:header_params] || {}
596
615
  # HTTP header 'Accept' (if needed)
597
- 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']
598
617
 
599
618
  # form parameters
600
619
  form_params = opts[:form_params] || {}
601
620
 
602
621
  # http body (model)
603
- post_body = opts[:body]
622
+ post_body = opts[:debug_body]
604
623
 
605
624
  # return_type
606
- return_type = opts[:return_type] || 'GemGemDistributionResponse'
625
+ return_type = opts[:debug_return_type] || 'GemGemDistributionResponse'
607
626
 
608
627
  # auth_names
609
- auth_names = opts[:auth_names] || ['basicAuth']
628
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
610
629
 
611
630
  new_options = opts.merge(
631
+ :operation => :"DistributionsGemApi.read",
612
632
  :header_params => header_params,
613
633
  :query_params => query_params,
614
634
  :form_params => form_params,
@@ -662,23 +682,27 @@ module PulpGemClient
662
682
  # header parameters
663
683
  header_params = opts[:header_params] || {}
664
684
  # HTTP header 'Accept' (if needed)
665
- 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']
666
686
  # HTTP header 'Content-Type'
667
- 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
668
691
 
669
692
  # form parameters
670
693
  form_params = opts[:form_params] || {}
671
694
 
672
695
  # http body (model)
673
- 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)
674
697
 
675
698
  # return_type
676
- return_type = opts[:return_type] || 'NestedRoleResponse'
699
+ return_type = opts[:debug_return_type] || 'NestedRoleResponse'
677
700
 
678
701
  # auth_names
679
- auth_names = opts[:auth_names] || ['basicAuth']
702
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
680
703
 
681
704
  new_options = opts.merge(
705
+ :operation => :"DistributionsGemApi.remove_role",
682
706
  :header_params => header_params,
683
707
  :query_params => query_params,
684
708
  :form_params => form_params,
@@ -732,23 +756,27 @@ module PulpGemClient
732
756
  # header parameters
733
757
  header_params = opts[:header_params] || {}
734
758
  # HTTP header 'Accept' (if needed)
735
- 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']
736
760
  # HTTP header 'Content-Type'
737
- 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
738
765
 
739
766
  # form parameters
740
767
  form_params = opts[:form_params] || {}
741
768
 
742
769
  # http body (model)
743
- 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)
744
771
 
745
772
  # return_type
746
- return_type = opts[:return_type] || 'SetLabelResponse'
773
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
747
774
 
748
775
  # auth_names
749
- auth_names = opts[:auth_names] || ['basicAuth']
776
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
750
777
 
751
778
  new_options = opts.merge(
779
+ :operation => :"DistributionsGemApi.set_label",
752
780
  :header_params => header_params,
753
781
  :query_params => query_params,
754
782
  :form_params => form_params,
@@ -802,23 +830,27 @@ module PulpGemClient
802
830
  # header parameters
803
831
  header_params = opts[:header_params] || {}
804
832
  # HTTP header 'Accept' (if needed)
805
- 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']
806
834
  # HTTP header 'Content-Type'
807
- 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
808
839
 
809
840
  # form parameters
810
841
  form_params = opts[:form_params] || {}
811
842
 
812
843
  # http body (model)
813
- 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)
814
845
 
815
846
  # return_type
816
- return_type = opts[:return_type] || 'UnsetLabelResponse'
847
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
817
848
 
818
849
  # auth_names
819
- auth_names = opts[:auth_names] || ['basicAuth']
850
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
820
851
 
821
852
  new_options = opts.merge(
853
+ :operation => :"DistributionsGemApi.unset_label",
822
854
  :header_params => header_params,
823
855
  :query_params => query_params,
824
856
  :form_params => form_params,
@@ -872,23 +904,27 @@ module PulpGemClient
872
904
  # header parameters
873
905
  header_params = opts[:header_params] || {}
874
906
  # HTTP header 'Accept' (if needed)
875
- 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']
876
908
  # HTTP header 'Content-Type'
877
- 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
878
913
 
879
914
  # form parameters
880
915
  form_params = opts[:form_params] || {}
881
916
 
882
917
  # http body (model)
883
- post_body = opts[:body] || @api_client.object_to_http_body(gem_gem_distribution)
918
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(gem_gem_distribution)
884
919
 
885
920
  # return_type
886
- return_type = opts[:return_type] || 'AsyncOperationResponse'
921
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
887
922
 
888
923
  # auth_names
889
- auth_names = opts[:auth_names] || ['basicAuth']
924
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
890
925
 
891
926
  new_options = opts.merge(
927
+ :operation => :"DistributionsGemApi.update",
892
928
  :header_params => header_params,
893
929
  :query_params => query_params,
894
930
  :form_params => form_params,