pulp_gem_client 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -8
  3. data/docs/AsyncOperationResponse.md +8 -7
  4. data/docs/ContentGemApi.md +118 -66
  5. data/docs/ContentSummaryResponse.md +12 -11
  6. data/docs/DistributionsGemApi.md +388 -183
  7. data/docs/GemGemContentResponse.md +32 -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 +31 -22
  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 +45 -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 +32 -22
  85. data/lib/pulp_gem_client/models/unset_label_response.rb +32 -22
  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 +9 -8
  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 +24 -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 +80 -60
  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
 
@@ -51,9 +51,12 @@ module PulpGemClient
51
51
  # header parameters
52
52
  header_params = opts[:header_params] || {}
53
53
  # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
56
+ content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
57
60
 
58
61
  # form parameters
59
62
  form_params = opts[:form_params] || {}
@@ -62,15 +65,16 @@ module PulpGemClient
62
65
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
63
66
 
64
67
  # http body (model)
65
- post_body = opts[:body]
68
+ post_body = opts[:debug_body]
66
69
 
67
70
  # return_type
68
- return_type = opts[:return_type] || 'AsyncOperationResponse'
71
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
69
72
 
70
73
  # auth_names
71
- auth_names = opts[:auth_names] || ['basicAuth']
74
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
72
75
 
73
76
  new_options = opts.merge(
77
+ :operation => :"ContentGemApi.create",
74
78
  :header_params => header_params,
75
79
  :query_params => query_params,
76
80
  :form_params => form_params,
@@ -96,12 +100,13 @@ module PulpGemClient
96
100
  # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
97
101
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
98
102
  # @option opts [Boolean] :prerelease Filter results where prerelease matches value
103
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
99
104
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
100
105
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
101
- # @option opts [String] :q
102
- # @option opts [String] :repository_version Repository Version referenced by HREF
103
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
104
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
106
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
107
+ # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
108
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
109
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
105
110
  # @option opts [String] :version Filter results where version matches value
106
111
  # @option opts [Array<String>] :fields A list of fields to include in the response.
107
112
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -121,12 +126,13 @@ module PulpGemClient
121
126
  # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
122
127
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
123
128
  # @option opts [Boolean] :prerelease Filter results where prerelease matches value
129
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
124
130
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
125
131
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
126
- # @option opts [String] :q
127
- # @option opts [String] :repository_version Repository Version referenced by HREF
128
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
129
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
132
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
133
+ # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
134
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
135
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
130
136
  # @option opts [String] :version Filter results where version matches value
131
137
  # @option opts [Array<String>] :fields A list of fields to include in the response.
132
138
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -151,6 +157,7 @@ module PulpGemClient
151
157
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
152
158
  query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
153
159
  query_params[:'prerelease'] = opts[:'prerelease'] if !opts[:'prerelease'].nil?
160
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
154
161
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
155
162
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
156
163
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
@@ -164,21 +171,22 @@ module PulpGemClient
164
171
  # header parameters
165
172
  header_params = opts[:header_params] || {}
166
173
  # HTTP header 'Accept' (if needed)
167
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
174
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
168
175
 
169
176
  # form parameters
170
177
  form_params = opts[:form_params] || {}
171
178
 
172
179
  # http body (model)
173
- post_body = opts[:body]
180
+ post_body = opts[:debug_body]
174
181
 
175
182
  # return_type
176
- return_type = opts[:return_type] || 'PaginatedgemGemContentResponseList'
183
+ return_type = opts[:debug_return_type] || 'PaginatedgemGemContentResponseList'
177
184
 
178
185
  # auth_names
179
- auth_names = opts[:auth_names] || ['basicAuth']
186
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
180
187
 
181
188
  new_options = opts.merge(
189
+ :operation => :"ContentGemApi.list",
182
190
  :header_params => header_params,
183
191
  :query_params => query_params,
184
192
  :form_params => form_params,
@@ -232,21 +240,22 @@ module PulpGemClient
232
240
  # header parameters
233
241
  header_params = opts[:header_params] || {}
234
242
  # HTTP header 'Accept' (if needed)
235
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
243
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
236
244
 
237
245
  # form parameters
238
246
  form_params = opts[:form_params] || {}
239
247
 
240
248
  # http body (model)
241
- post_body = opts[:body]
249
+ post_body = opts[:debug_body]
242
250
 
243
251
  # return_type
244
- return_type = opts[:return_type] || 'GemGemContentResponse'
252
+ return_type = opts[:debug_return_type] || 'GemGemContentResponse'
245
253
 
246
254
  # auth_names
247
- auth_names = opts[:auth_names] || ['basicAuth']
255
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
248
256
 
249
257
  new_options = opts.merge(
258
+ :operation => :"ContentGemApi.read",
250
259
  :header_params => header_params,
251
260
  :query_params => query_params,
252
261
  :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 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,