pulp_maven_client 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -4
  3. data/docs/ContentArtifactApi.md +8 -8
  4. data/docs/DistributionsMavenApi.md +18 -12
  5. data/docs/MavenMavenDistribution.md +1 -1
  6. data/docs/MavenMavenDistributionResponse.md +1 -1
  7. data/docs/MavenMavenRemote.md +1 -1
  8. data/docs/MavenMavenRemoteResponse.md +4 -2
  9. data/docs/MavenMavenRemoteResponseHiddenFields.md +19 -0
  10. data/docs/MavenMavenRepository.md +2 -2
  11. data/docs/MavenMavenRepositoryResponse.md +2 -2
  12. data/docs/PatchedmavenMavenDistribution.md +1 -1
  13. data/docs/PatchedmavenMavenRemote.md +1 -1
  14. data/docs/PatchedmavenMavenRepository.md +2 -2
  15. data/docs/PulpMavenApi.md +110 -0
  16. data/docs/RemotesMavenApi.md +12 -12
  17. data/docs/RepositoriesMavenApi.md +28 -10
  18. data/docs/RepositoriesMavenVersionsApi.md +12 -12
  19. data/lib/pulp_maven_client/api/content_artifact_api.rb +13 -13
  20. data/lib/pulp_maven_client/api/distributions_maven_api.rb +26 -17
  21. data/lib/pulp_maven_client/api/pulp_maven_api.rb +176 -0
  22. data/lib/pulp_maven_client/api/remotes_maven_api.rb +17 -17
  23. data/lib/pulp_maven_client/api/repositories_maven_api.rb +42 -15
  24. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +17 -17
  25. data/lib/pulp_maven_client/api_client.rb +1 -1
  26. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +4 -2
  27. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +4 -2
  28. data/lib/pulp_maven_client/models/maven_maven_remote.rb +4 -2
  29. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +21 -7
  30. data/lib/pulp_maven_client/models/maven_maven_remote_response_hidden_fields.rb +215 -0
  31. data/lib/pulp_maven_client/models/maven_maven_repository.rb +5 -3
  32. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +5 -3
  33. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +4 -2
  34. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +4 -2
  35. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +5 -3
  36. data/lib/pulp_maven_client/version.rb +1 -1
  37. data/lib/pulp_maven_client.rb +2 -0
  38. data/pulp_maven_client.gemspec +3 -3
  39. data/spec/api/content_artifact_api_spec.rb +4 -4
  40. data/spec/api/distributions_maven_api_spec.rb +9 -6
  41. data/spec/api/pulp_maven_api_spec.rb +61 -0
  42. data/spec/api/remotes_maven_api_spec.rb +6 -6
  43. data/spec/api/repositories_maven_api_spec.rb +14 -5
  44. data/spec/api/repositories_maven_versions_api_spec.rb +6 -6
  45. data/spec/models/maven_maven_remote_response_hidden_fields_spec.rb +47 -0
  46. data/spec/models/maven_maven_remote_response_spec.rb +6 -0
  47. metadata +34 -27
  48. data/git_push.sh +0 -58
@@ -90,7 +90,7 @@ opts = {
90
90
  content: 'content_example', # String | Content Unit referenced by HREF
91
91
  content__in: 'content__in_example', # String | Content Unit referenced by HREF
92
92
  limit: 56, # Integer | Number of results to return per page.
93
- number: 56, # Integer |
93
+ number: 56, # Integer | Filter results where number matches value
94
94
  number__gt: 56, # Integer | Filter results where number is greater than value
95
95
  number__gte: 56, # Integer | Filter results where number is greater than or equal to value
96
96
  number__lt: 56, # Integer | Filter results where number is less than value
@@ -98,14 +98,14 @@ opts = {
98
98
  number__range: [56], # Array<Integer> | Filter results where number is between two comma separated values
99
99
  offset: 56, # Integer | The initial index from which to return the results.
100
100
  ordering: ['ordering_example'], # Array<String> | Ordering
101
- pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
101
+ pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created matches value
102
102
  pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
103
103
  pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
104
104
  pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value
105
105
  pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value
106
106
  pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
107
- fields: 'fields_example', # String | A list of fields to include in the response.
108
- exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
107
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
108
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
109
109
  }
110
110
 
111
111
  begin
@@ -126,7 +126,7 @@ Name | Type | Description | Notes
126
126
  **content** | **String**| Content Unit referenced by HREF | [optional]
127
127
  **content__in** | **String**| Content Unit referenced by HREF | [optional]
128
128
  **limit** | **Integer**| Number of results to return per page. | [optional]
129
- **number** | **Integer**| | [optional]
129
+ **number** | **Integer**| Filter results where number matches value | [optional]
130
130
  **number__gt** | **Integer**| Filter results where number is greater than value | [optional]
131
131
  **number__gte** | **Integer**| Filter results where number is greater than or equal to value | [optional]
132
132
  **number__lt** | **Integer**| Filter results where number is less than value | [optional]
@@ -134,14 +134,14 @@ Name | Type | Description | Notes
134
134
  **number__range** | [**Array&lt;Integer&gt;**](Integer.md)| Filter results where number is between two comma separated values | [optional]
135
135
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
136
136
  **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
137
- **pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
137
+ **pulp_created** | **DateTime**| Filter results where pulp_created matches value | [optional]
138
138
  **pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
139
139
  **pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
140
140
  **pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
141
141
  **pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
142
142
  **pulp_created__range** | [**Array&lt;DateTime&gt;**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
143
- **fields** | **String**| A list of fields to include in the response. | [optional]
144
- **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
143
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
144
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
145
145
 
146
146
  ### Return type
147
147
 
@@ -180,8 +180,8 @@ end
180
180
  api_instance = PulpMavenClient::RepositoriesMavenVersionsApi.new
181
181
  maven_maven_repository_version_href = 'maven_maven_repository_version_href_example' # String |
182
182
  opts = {
183
- fields: 'fields_example', # String | A list of fields to include in the response.
184
- exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
183
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
184
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
185
185
  }
186
186
 
187
187
  begin
@@ -199,8 +199,8 @@ end
199
199
  Name | Type | Description | Notes
200
200
  ------------- | ------------- | ------------- | -------------
201
201
  **maven_maven_repository_version_href** | **String**| |
202
- **fields** | **String**| A list of fields to include in the response. | [optional]
203
- **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
202
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
203
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
204
204
 
205
205
  ### Return type
206
206
 
@@ -96,8 +96,8 @@ module PulpMavenClient
96
96
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
97
97
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
98
98
  # @option opts [String] :version Filter results where version matches value
99
- # @option opts [String] :fields A list of fields to include in the response.
100
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
99
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
100
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
101
101
  # @return [PaginatedmavenMavenArtifactResponseList]
102
102
  def list(opts = {})
103
103
  data, _status_code, _headers = list_with_http_info(opts)
@@ -117,14 +117,14 @@ module PulpMavenClient
117
117
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
118
118
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
119
119
  # @option opts [String] :version Filter results where version matches value
120
- # @option opts [String] :fields A list of fields to include in the response.
121
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
120
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
121
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
122
122
  # @return [Array<(PaginatedmavenMavenArtifactResponseList, Integer, Hash)>] PaginatedmavenMavenArtifactResponseList data, response status code and response headers
123
123
  def list_with_http_info(opts = {})
124
124
  if @api_client.config.debugging
125
125
  @api_client.config.logger.debug 'Calling API: ContentArtifactApi.list ...'
126
126
  end
127
- allowable_values = ["-_artifacts", "-artifact_id", "-content_ptr", "-contentartifact", "-filename", "-group_id", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "artifact_id", "content_ptr", "contentartifact", "filename", "group_id", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
127
+ allowable_values = ["-artifact_id", "-filename", "-group_id", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "-version", "artifact_id", "filename", "group_id", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id", "version"]
128
128
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
129
129
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
130
130
  end
@@ -143,8 +143,8 @@ module PulpMavenClient
143
143
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
144
144
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
145
145
  query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
146
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
147
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
146
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
147
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
148
148
 
149
149
  # header parameters
150
150
  header_params = opts[:header_params] || {}
@@ -183,8 +183,8 @@ module PulpMavenClient
183
183
  # A ViewSet for MavenArtifact.
184
184
  # @param maven_maven_artifact_href [String]
185
185
  # @param [Hash] opts the optional parameters
186
- # @option opts [String] :fields A list of fields to include in the response.
187
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
186
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
187
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
188
188
  # @return [MavenMavenArtifactResponse]
189
189
  def read(maven_maven_artifact_href, opts = {})
190
190
  data, _status_code, _headers = read_with_http_info(maven_maven_artifact_href, opts)
@@ -195,8 +195,8 @@ module PulpMavenClient
195
195
  # A ViewSet for MavenArtifact.
196
196
  # @param maven_maven_artifact_href [String]
197
197
  # @param [Hash] opts the optional parameters
198
- # @option opts [String] :fields A list of fields to include in the response.
199
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
198
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
199
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
200
200
  # @return [Array<(MavenMavenArtifactResponse, Integer, Hash)>] MavenMavenArtifactResponse data, response status code and response headers
201
201
  def read_with_http_info(maven_maven_artifact_href, opts = {})
202
202
  if @api_client.config.debugging
@@ -211,8 +211,8 @@ module PulpMavenClient
211
211
 
212
212
  # query parameters
213
213
  query_params = opts[:query_params] || {}
214
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
215
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
214
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
215
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
216
216
 
217
217
  # header parameters
218
218
  header_params = opts[:header_params] || {}
@@ -148,12 +148,12 @@ module PulpMavenClient
148
148
  # List maven distributions
149
149
  # ViewSet for Maven Distributions.
150
150
  # @param [Hash] opts the optional parameters
151
- # @option opts [String] :base_path
151
+ # @option opts [String] :base_path Filter results where base_path matches value
152
152
  # @option opts [String] :base_path__contains Filter results where base_path contains value
153
153
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
154
154
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
155
155
  # @option opts [Integer] :limit Number of results to return per page.
156
- # @option opts [String] :name
156
+ # @option opts [String] :name Filter results where name matches value
157
157
  # @option opts [String] :name__contains Filter results where name contains value
158
158
  # @option opts [String] :name__icontains Filter results where name contains value
159
159
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -161,8 +161,11 @@ module PulpMavenClient
161
161
  # @option opts [Integer] :offset The initial index from which to return the results.
162
162
  # @option opts [Array<String>] :ordering Ordering
163
163
  # @option opts [String] :pulp_label_select Filter labels by search string
164
- # @option opts [String] :fields A list of fields to include in the response.
165
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
164
+ # @option opts [String] :repository Filter results where repository matches value
165
+ # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
166
+ # @option opts [String] :with_content Filter distributions based on the content served by them
167
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
168
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
166
169
  # @return [PaginatedmavenMavenDistributionResponseList]
167
170
  def list(opts = {})
168
171
  data, _status_code, _headers = list_with_http_info(opts)
@@ -172,12 +175,12 @@ module PulpMavenClient
172
175
  # List maven distributions
173
176
  # ViewSet for Maven Distributions.
174
177
  # @param [Hash] opts the optional parameters
175
- # @option opts [String] :base_path
178
+ # @option opts [String] :base_path Filter results where base_path matches value
176
179
  # @option opts [String] :base_path__contains Filter results where base_path contains value
177
180
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
178
181
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
179
182
  # @option opts [Integer] :limit Number of results to return per page.
180
- # @option opts [String] :name
183
+ # @option opts [String] :name Filter results where name matches value
181
184
  # @option opts [String] :name__contains Filter results where name contains value
182
185
  # @option opts [String] :name__icontains Filter results where name contains value
183
186
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -185,14 +188,17 @@ module PulpMavenClient
185
188
  # @option opts [Integer] :offset The initial index from which to return the results.
186
189
  # @option opts [Array<String>] :ordering Ordering
187
190
  # @option opts [String] :pulp_label_select Filter labels by search string
188
- # @option opts [String] :fields A list of fields to include in the response.
189
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
191
+ # @option opts [String] :repository Filter results where repository matches value
192
+ # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
193
+ # @option opts [String] :with_content Filter distributions based on the content served by them
194
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
195
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
190
196
  # @return [Array<(PaginatedmavenMavenDistributionResponseList, Integer, Hash)>] PaginatedmavenMavenDistributionResponseList data, response status code and response headers
191
197
  def list_with_http_info(opts = {})
192
198
  if @api_client.config.debugging
193
199
  @api_client.config.logger.debug 'Calling API: DistributionsMavenApi.list ...'
194
200
  end
195
- allowable_values = ["-base_path", "-content_guard", "-group_roles", "-maven_mavendistribution", "-name", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-repository", "-repository_version", "-user_roles", "base_path", "content_guard", "group_roles", "maven_mavendistribution", "name", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "repository", "repository_version", "user_roles"]
201
+ allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
196
202
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
197
203
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
198
204
  end
@@ -214,8 +220,11 @@ module PulpMavenClient
214
220
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
215
221
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
216
222
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
217
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
218
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
223
+ query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
224
+ query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
225
+ query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
226
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
227
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
219
228
 
220
229
  # header parameters
221
230
  header_params = opts[:header_params] || {}
@@ -324,8 +333,8 @@ module PulpMavenClient
324
333
  # ViewSet for Maven Distributions.
325
334
  # @param maven_maven_distribution_href [String]
326
335
  # @param [Hash] opts the optional parameters
327
- # @option opts [String] :fields A list of fields to include in the response.
328
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
336
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
337
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
329
338
  # @return [MavenMavenDistributionResponse]
330
339
  def read(maven_maven_distribution_href, opts = {})
331
340
  data, _status_code, _headers = read_with_http_info(maven_maven_distribution_href, opts)
@@ -336,8 +345,8 @@ module PulpMavenClient
336
345
  # ViewSet for Maven Distributions.
337
346
  # @param maven_maven_distribution_href [String]
338
347
  # @param [Hash] opts the optional parameters
339
- # @option opts [String] :fields A list of fields to include in the response.
340
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
348
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
349
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
341
350
  # @return [Array<(MavenMavenDistributionResponse, Integer, Hash)>] MavenMavenDistributionResponse data, response status code and response headers
342
351
  def read_with_http_info(maven_maven_distribution_href, opts = {})
343
352
  if @api_client.config.debugging
@@ -352,8 +361,8 @@ module PulpMavenClient
352
361
 
353
362
  # query parameters
354
363
  query_params = opts[:query_params] || {}
355
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
356
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
364
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
365
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
357
366
 
358
367
  # header parameters
359
368
  header_params = opts[:header_params] || {}
@@ -0,0 +1,176 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpMavenClient
16
+ class PulpMavenApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Responds to GET requests about manifests by reference
23
+ # @param name [String]
24
+ # @param path [String]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
27
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
28
+ # @return [nil]
29
+ def get(name, path, opts = {})
30
+ get_with_http_info(name, path, opts)
31
+ nil
32
+ end
33
+
34
+ # Responds to GET requests about manifests by reference
35
+ # @param name [String]
36
+ # @param path [String]
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
39
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
40
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
41
+ def get_with_http_info(name, path, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: PulpMavenApi.get ...'
44
+ end
45
+ # verify the required parameter 'name' is set
46
+ if @api_client.config.client_side_validation && name.nil?
47
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpMavenApi.get"
48
+ end
49
+ pattern = Regexp.new(/^[\w-]+$/)
50
+ if @api_client.config.client_side_validation && name !~ pattern
51
+ fail ArgumentError, "invalid value for 'name' when calling PulpMavenApi.get, must conform to the pattern #{pattern}."
52
+ end
53
+
54
+ # verify the required parameter 'path' is set
55
+ if @api_client.config.client_side_validation && path.nil?
56
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpMavenApi.get"
57
+ end
58
+ pattern = Regexp.new(/^.*$/)
59
+ if @api_client.config.client_side_validation && path !~ pattern
60
+ fail ArgumentError, "invalid value for 'path' when calling PulpMavenApi.get, must conform to the pattern #{pattern}."
61
+ end
62
+
63
+ # resource path
64
+ local_var_path = '/pulp/maven/{name}/{path}'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
65
+
66
+ # query parameters
67
+ query_params = opts[:query_params] || {}
68
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
69
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
70
+
71
+ # header parameters
72
+ header_params = opts[:header_params] || {}
73
+
74
+ # form parameters
75
+ form_params = opts[:form_params] || {}
76
+
77
+ # http body (model)
78
+ post_body = opts[:body]
79
+
80
+ # return_type
81
+ return_type = opts[:return_type]
82
+
83
+ # auth_names
84
+ auth_names = opts[:auth_names] || []
85
+
86
+ new_options = opts.merge(
87
+ :header_params => header_params,
88
+ :query_params => query_params,
89
+ :form_params => form_params,
90
+ :body => post_body,
91
+ :auth_names => auth_names,
92
+ :return_type => return_type
93
+ )
94
+
95
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: PulpMavenApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
101
+
102
+ # ViewSet for interacting with maven deploy API
103
+ # @param name [String]
104
+ # @param path [String]
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [nil]
107
+ def put(name, path, opts = {})
108
+ put_with_http_info(name, path, opts)
109
+ nil
110
+ end
111
+
112
+ # ViewSet for interacting with maven deploy API
113
+ # @param name [String]
114
+ # @param path [String]
115
+ # @param [Hash] opts the optional parameters
116
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
117
+ def put_with_http_info(name, path, opts = {})
118
+ if @api_client.config.debugging
119
+ @api_client.config.logger.debug 'Calling API: PulpMavenApi.put ...'
120
+ end
121
+ # verify the required parameter 'name' is set
122
+ if @api_client.config.client_side_validation && name.nil?
123
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpMavenApi.put"
124
+ end
125
+ pattern = Regexp.new(/^[\w-]+$/)
126
+ if @api_client.config.client_side_validation && name !~ pattern
127
+ fail ArgumentError, "invalid value for 'name' when calling PulpMavenApi.put, must conform to the pattern #{pattern}."
128
+ end
129
+
130
+ # verify the required parameter 'path' is set
131
+ if @api_client.config.client_side_validation && path.nil?
132
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpMavenApi.put"
133
+ end
134
+ pattern = Regexp.new(/^.*$/)
135
+ if @api_client.config.client_side_validation && path !~ pattern
136
+ fail ArgumentError, "invalid value for 'path' when calling PulpMavenApi.put, must conform to the pattern #{pattern}."
137
+ end
138
+
139
+ # resource path
140
+ local_var_path = '/pulp/maven/{name}/{path}'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
141
+
142
+ # query parameters
143
+ query_params = opts[:query_params] || {}
144
+
145
+ # header parameters
146
+ header_params = opts[:header_params] || {}
147
+
148
+ # form parameters
149
+ form_params = opts[:form_params] || {}
150
+
151
+ # http body (model)
152
+ post_body = opts[:body]
153
+
154
+ # return_type
155
+ return_type = opts[:return_type]
156
+
157
+ # auth_names
158
+ auth_names = opts[:auth_names] || []
159
+
160
+ new_options = opts.merge(
161
+ :header_params => header_params,
162
+ :query_params => query_params,
163
+ :form_params => form_params,
164
+ :body => post_body,
165
+ :auth_names => auth_names,
166
+ :return_type => return_type
167
+ )
168
+
169
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
170
+ if @api_client.config.debugging
171
+ @api_client.config.logger.debug "API called: PulpMavenApi#put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
172
+ end
173
+ return data, status_code, headers
174
+ end
175
+ end
176
+ end
@@ -149,7 +149,7 @@ module PulpMavenClient
149
149
  # A ViewSet for MavenRemote.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name
152
+ # @option opts [String] :name Filter results where name matches value
153
153
  # @option opts [String] :name__contains Filter results where name contains value
154
154
  # @option opts [String] :name__icontains Filter results where name contains value
155
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -157,14 +157,14 @@ module PulpMavenClient
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
158
  # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
- # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
160
+ # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
161
161
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
162
162
  # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
163
163
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
164
164
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
165
165
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
166
- # @option opts [String] :fields A list of fields to include in the response.
167
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
166
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
167
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
168
168
  # @return [PaginatedmavenMavenRemoteResponseList]
169
169
  def list(opts = {})
170
170
  data, _status_code, _headers = list_with_http_info(opts)
@@ -175,7 +175,7 @@ module PulpMavenClient
175
175
  # A ViewSet for MavenRemote.
176
176
  # @param [Hash] opts the optional parameters
177
177
  # @option opts [Integer] :limit Number of results to return per page.
178
- # @option opts [String] :name
178
+ # @option opts [String] :name Filter results where name matches value
179
179
  # @option opts [String] :name__contains Filter results where name contains value
180
180
  # @option opts [String] :name__icontains Filter results where name contains value
181
181
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -183,20 +183,20 @@ module PulpMavenClient
183
183
  # @option opts [Integer] :offset The initial index from which to return the results.
184
184
  # @option opts [Array<String>] :ordering Ordering
185
185
  # @option opts [String] :pulp_label_select Filter labels by search string
186
- # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
186
+ # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
187
187
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
188
188
  # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
189
189
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
190
190
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
191
191
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
192
- # @option opts [String] :fields A list of fields to include in the response.
193
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
192
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
193
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
194
194
  # @return [Array<(PaginatedmavenMavenRemoteResponseList, Integer, Hash)>] PaginatedmavenMavenRemoteResponseList data, response status code and response headers
195
195
  def list_with_http_info(opts = {})
196
196
  if @api_client.config.debugging
197
197
  @api_client.config.logger.debug 'Calling API: RemotesMavenApi.list ...'
198
198
  end
199
- allowable_values = ["-alternatecontentsource", "-basedistribution", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-distribution", "-download_concurrency", "-group_roles", "-headers", "-maven_mavenremote", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-remoteartifact", "-repository", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-user_roles", "-username", "alternatecontentsource", "basedistribution", "ca_cert", "client_cert", "client_key", "connect_timeout", "distribution", "download_concurrency", "group_roles", "headers", "maven_mavenremote", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "remoteartifact", "repository", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "user_roles", "username"]
199
+ allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
200
200
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
201
201
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
202
202
  end
@@ -220,8 +220,8 @@ module PulpMavenClient
220
220
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
221
221
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
222
222
  query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
223
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
224
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
223
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
224
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
225
225
 
226
226
  # header parameters
227
227
  header_params = opts[:header_params] || {}
@@ -330,8 +330,8 @@ module PulpMavenClient
330
330
  # A ViewSet for MavenRemote.
331
331
  # @param maven_maven_remote_href [String]
332
332
  # @param [Hash] opts the optional parameters
333
- # @option opts [String] :fields A list of fields to include in the response.
334
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
333
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
334
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
335
335
  # @return [MavenMavenRemoteResponse]
336
336
  def read(maven_maven_remote_href, opts = {})
337
337
  data, _status_code, _headers = read_with_http_info(maven_maven_remote_href, opts)
@@ -342,8 +342,8 @@ module PulpMavenClient
342
342
  # A ViewSet for MavenRemote.
343
343
  # @param maven_maven_remote_href [String]
344
344
  # @param [Hash] opts the optional parameters
345
- # @option opts [String] :fields A list of fields to include in the response.
346
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
345
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
346
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
347
347
  # @return [Array<(MavenMavenRemoteResponse, Integer, Hash)>] MavenMavenRemoteResponse data, response status code and response headers
348
348
  def read_with_http_info(maven_maven_remote_href, opts = {})
349
349
  if @api_client.config.debugging
@@ -358,8 +358,8 @@ module PulpMavenClient
358
358
 
359
359
  # query parameters
360
360
  query_params = opts[:query_params] || {}
361
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
362
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
361
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
362
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
363
363
 
364
364
  # header parameters
365
365
  header_params = opts[:header_params] || {}