pulp_maven_client 0.1.0b31570567113 → 0.1.0b31574369188

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -8
  3. data/docs/ContentArtifactApi.md +6 -6
  4. data/docs/ContentSummary.md +21 -0
  5. data/docs/DistributionsMavenApi.md +8 -8
  6. data/docs/InlineResponse200.md +1 -1
  7. data/docs/InlineResponse2001.md +1 -1
  8. data/docs/InlineResponse2002.md +1 -1
  9. data/docs/InlineResponse2003.md +23 -0
  10. data/docs/InlineResponse2004.md +23 -0
  11. data/docs/{MavenArtifact.md → MavenMavenArtifact.md} +9 -13
  12. data/docs/{MavenDistribution.md → MavenMavenDistribution.md} +6 -6
  13. data/docs/MavenMavenRemote.md +39 -0
  14. data/docs/MavenMavenRepository.md +27 -0
  15. data/docs/RemotesMavenApi.md +22 -22
  16. data/docs/RepositoriesMavenApi.md +354 -0
  17. data/docs/RepositoriesMavenVersionsApi.md +214 -0
  18. data/docs/RepositoryVersion.md +25 -0
  19. data/lib/pulp_maven_client.rb +11 -4
  20. data/lib/pulp_maven_client/api/content_artifact_api.rb +9 -9
  21. data/lib/pulp_maven_client/api/distributions_maven_api.rb +10 -10
  22. data/lib/pulp_maven_client/api/remotes_maven_api.rb +31 -31
  23. data/lib/pulp_maven_client/api/repositories_maven_api.rb +430 -0
  24. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +268 -0
  25. data/lib/pulp_maven_client/api_client.rb +1 -1
  26. data/lib/pulp_maven_client/api_error.rb +1 -1
  27. data/lib/pulp_maven_client/configuration.rb +1 -1
  28. data/lib/pulp_maven_client/models/async_operation_response.rb +12 -2
  29. data/lib/pulp_maven_client/models/content_summary.rb +246 -0
  30. data/lib/pulp_maven_client/models/inline_response200.rb +15 -3
  31. data/lib/pulp_maven_client/models/inline_response2001.rb +15 -3
  32. data/lib/pulp_maven_client/models/inline_response2002.rb +15 -3
  33. data/lib/pulp_maven_client/models/inline_response2003.rb +247 -0
  34. data/lib/pulp_maven_client/models/inline_response2004.rb +247 -0
  35. data/lib/pulp_maven_client/models/{maven_artifact.rb → maven_maven_artifact.rb} +28 -76
  36. data/lib/pulp_maven_client/models/{maven_distribution.rb → maven_maven_distribution.rb} +30 -36
  37. data/lib/pulp_maven_client/models/{maven_remote.rb → maven_maven_remote.rb} +87 -147
  38. data/lib/pulp_maven_client/models/maven_maven_repository.rb +294 -0
  39. data/lib/pulp_maven_client/models/repository_version.rb +244 -0
  40. data/lib/pulp_maven_client/version.rb +2 -2
  41. data/pulp_maven_client.gemspec +1 -1
  42. data/spec/api/content_artifact_api_spec.rb +3 -3
  43. data/spec/api/distributions_maven_api_spec.rb +2 -2
  44. data/spec/api/remotes_maven_api_spec.rb +9 -9
  45. data/spec/api/repositories_maven_api_spec.rb +116 -0
  46. data/spec/api/repositories_maven_versions_api_spec.rb +91 -0
  47. data/spec/api_client_spec.rb +1 -1
  48. data/spec/configuration_spec.rb +1 -1
  49. data/spec/models/async_operation_response_spec.rb +1 -1
  50. data/spec/models/content_summary_spec.rb +53 -0
  51. data/spec/models/inline_response2001_spec.rb +1 -1
  52. data/spec/models/inline_response2002_spec.rb +1 -1
  53. data/spec/models/inline_response2003_spec.rb +59 -0
  54. data/spec/models/inline_response2004_spec.rb +59 -0
  55. data/spec/models/inline_response200_spec.rb +1 -1
  56. data/spec/models/{maven_artifact_spec.rb → maven_maven_artifact_spec.rb} +9 -21
  57. data/spec/models/{maven_distribution_spec.rb → maven_maven_distribution_spec.rb} +9 -9
  58. data/spec/models/{maven_remote_spec.rb → maven_maven_remote_spec.rb} +14 -32
  59. data/spec/models/maven_maven_repository_spec.rb +71 -0
  60. data/spec/models/repository_version_spec.rb +65 -0
  61. data/spec/spec_helper.rb +1 -1
  62. metadata +42 -14
  63. data/docs/MavenRemote.md +0 -45
@@ -0,0 +1,354 @@
1
+ # PulpMavenClient::RepositoriesMavenApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository
8
+ [**delete**](RepositoriesMavenApi.md#delete) | **DELETE** {maven_repository_href} | Delete a maven repository
9
+ [**list**](RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys
10
+ [**partial_update**](RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_repository_href} | Partially update a maven repository
11
+ [**read**](RepositoriesMavenApi.md#read) | **GET** {maven_repository_href} | Inspect a maven repository
12
+ [**update**](RepositoriesMavenApi.md#update) | **PUT** {maven_repository_href} | Update a maven repository
13
+
14
+
15
+
16
+ ## create
17
+
18
+ > MavenMavenRepository create(data)
19
+
20
+ Create a maven repository
21
+
22
+ A ViewSet for MavenRemote.
23
+
24
+ ### Example
25
+
26
+ ```ruby
27
+ # load the gem
28
+ require 'pulp_maven_client'
29
+ # setup authorization
30
+ PulpMavenClient.configure do |config|
31
+ # Configure HTTP basic authorization: Basic
32
+ config.username = 'YOUR USERNAME'
33
+ config.password = 'YOUR PASSWORD'
34
+ end
35
+
36
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
37
+ data = PulpMavenClient::MavenMavenRepository.new # MavenMavenRepository |
38
+
39
+ begin
40
+ #Create a maven repository
41
+ result = api_instance.create(data)
42
+ p result
43
+ rescue PulpMavenClient::ApiError => e
44
+ puts "Exception when calling RepositoriesMavenApi->create: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+
51
+ Name | Type | Description | Notes
52
+ ------------- | ------------- | ------------- | -------------
53
+ **data** | [**MavenMavenRepository**](MavenMavenRepository.md)| |
54
+
55
+ ### Return type
56
+
57
+ [**MavenMavenRepository**](MavenMavenRepository.md)
58
+
59
+ ### Authorization
60
+
61
+ [Basic](../README.md#Basic)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: application/json
66
+ - **Accept**: application/json
67
+
68
+
69
+ ## delete
70
+
71
+ > AsyncOperationResponse delete(maven_repository_href)
72
+
73
+ Delete a maven repository
74
+
75
+ Trigger an asynchronous task to delete a repository.
76
+
77
+ ### Example
78
+
79
+ ```ruby
80
+ # load the gem
81
+ require 'pulp_maven_client'
82
+ # setup authorization
83
+ PulpMavenClient.configure do |config|
84
+ # Configure HTTP basic authorization: Basic
85
+ config.username = 'YOUR USERNAME'
86
+ config.password = 'YOUR PASSWORD'
87
+ end
88
+
89
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
90
+ maven_repository_href = 'maven_repository_href_example' # String | URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
91
+
92
+ begin
93
+ #Delete a maven repository
94
+ result = api_instance.delete(maven_repository_href)
95
+ p result
96
+ rescue PulpMavenClient::ApiError => e
97
+ puts "Exception when calling RepositoriesMavenApi->delete: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **maven_repository_href** | **String**| URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/ |
107
+
108
+ ### Return type
109
+
110
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
111
+
112
+ ### Authorization
113
+
114
+ [Basic](../README.md#Basic)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: Not defined
119
+ - **Accept**: application/json
120
+
121
+
122
+ ## list
123
+
124
+ > InlineResponse2003 list(opts)
125
+
126
+ List maven repositorys
127
+
128
+ A ViewSet for MavenRemote.
129
+
130
+ ### Example
131
+
132
+ ```ruby
133
+ # load the gem
134
+ require 'pulp_maven_client'
135
+ # setup authorization
136
+ PulpMavenClient.configure do |config|
137
+ # Configure HTTP basic authorization: Basic
138
+ config.username = 'YOUR USERNAME'
139
+ config.password = 'YOUR PASSWORD'
140
+ end
141
+
142
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
143
+ opts = {
144
+ name: 'name_example', # String |
145
+ name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
146
+ limit: 56, # Integer | Number of results to return per page.
147
+ offset: 56, # Integer | The initial index from which to return the results.
148
+ fields: 'fields_example', # String | A list of fields to include in the response.
149
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
150
+ }
151
+
152
+ begin
153
+ #List maven repositorys
154
+ result = api_instance.list(opts)
155
+ p result
156
+ rescue PulpMavenClient::ApiError => e
157
+ puts "Exception when calling RepositoriesMavenApi->list: #{e}"
158
+ end
159
+ ```
160
+
161
+ ### Parameters
162
+
163
+
164
+ Name | Type | Description | Notes
165
+ ------------- | ------------- | ------------- | -------------
166
+ **name** | **String**| | [optional]
167
+ **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
168
+ **limit** | **Integer**| Number of results to return per page. | [optional]
169
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
170
+ **fields** | **String**| A list of fields to include in the response. | [optional]
171
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
172
+
173
+ ### Return type
174
+
175
+ [**InlineResponse2003**](InlineResponse2003.md)
176
+
177
+ ### Authorization
178
+
179
+ [Basic](../README.md#Basic)
180
+
181
+ ### HTTP request headers
182
+
183
+ - **Content-Type**: Not defined
184
+ - **Accept**: application/json
185
+
186
+
187
+ ## partial_update
188
+
189
+ > MavenMavenRepository partial_update(maven_repository_href, data)
190
+
191
+ Partially update a maven repository
192
+
193
+ A ViewSet for MavenRemote.
194
+
195
+ ### Example
196
+
197
+ ```ruby
198
+ # load the gem
199
+ require 'pulp_maven_client'
200
+ # setup authorization
201
+ PulpMavenClient.configure do |config|
202
+ # Configure HTTP basic authorization: Basic
203
+ config.username = 'YOUR USERNAME'
204
+ config.password = 'YOUR PASSWORD'
205
+ end
206
+
207
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
208
+ maven_repository_href = 'maven_repository_href_example' # String | URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
209
+ data = PulpMavenClient::MavenMavenRepository.new # MavenMavenRepository |
210
+
211
+ begin
212
+ #Partially update a maven repository
213
+ result = api_instance.partial_update(maven_repository_href, data)
214
+ p result
215
+ rescue PulpMavenClient::ApiError => e
216
+ puts "Exception when calling RepositoriesMavenApi->partial_update: #{e}"
217
+ end
218
+ ```
219
+
220
+ ### Parameters
221
+
222
+
223
+ Name | Type | Description | Notes
224
+ ------------- | ------------- | ------------- | -------------
225
+ **maven_repository_href** | **String**| URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/ |
226
+ **data** | [**MavenMavenRepository**](MavenMavenRepository.md)| |
227
+
228
+ ### Return type
229
+
230
+ [**MavenMavenRepository**](MavenMavenRepository.md)
231
+
232
+ ### Authorization
233
+
234
+ [Basic](../README.md#Basic)
235
+
236
+ ### HTTP request headers
237
+
238
+ - **Content-Type**: application/json
239
+ - **Accept**: application/json
240
+
241
+
242
+ ## read
243
+
244
+ > MavenMavenRepository read(maven_repository_href, opts)
245
+
246
+ Inspect a maven repository
247
+
248
+ A ViewSet for MavenRemote.
249
+
250
+ ### Example
251
+
252
+ ```ruby
253
+ # load the gem
254
+ require 'pulp_maven_client'
255
+ # setup authorization
256
+ PulpMavenClient.configure do |config|
257
+ # Configure HTTP basic authorization: Basic
258
+ config.username = 'YOUR USERNAME'
259
+ config.password = 'YOUR PASSWORD'
260
+ end
261
+
262
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
263
+ maven_repository_href = 'maven_repository_href_example' # String | URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
264
+ opts = {
265
+ fields: 'fields_example', # String | A list of fields to include in the response.
266
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
267
+ }
268
+
269
+ begin
270
+ #Inspect a maven repository
271
+ result = api_instance.read(maven_repository_href, opts)
272
+ p result
273
+ rescue PulpMavenClient::ApiError => e
274
+ puts "Exception when calling RepositoriesMavenApi->read: #{e}"
275
+ end
276
+ ```
277
+
278
+ ### Parameters
279
+
280
+
281
+ Name | Type | Description | Notes
282
+ ------------- | ------------- | ------------- | -------------
283
+ **maven_repository_href** | **String**| URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/ |
284
+ **fields** | **String**| A list of fields to include in the response. | [optional]
285
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
286
+
287
+ ### Return type
288
+
289
+ [**MavenMavenRepository**](MavenMavenRepository.md)
290
+
291
+ ### Authorization
292
+
293
+ [Basic](../README.md#Basic)
294
+
295
+ ### HTTP request headers
296
+
297
+ - **Content-Type**: Not defined
298
+ - **Accept**: application/json
299
+
300
+
301
+ ## update
302
+
303
+ > AsyncOperationResponse update(maven_repository_href, data)
304
+
305
+ Update a maven repository
306
+
307
+ Trigger an asynchronous task to update a repository.
308
+
309
+ ### Example
310
+
311
+ ```ruby
312
+ # load the gem
313
+ require 'pulp_maven_client'
314
+ # setup authorization
315
+ PulpMavenClient.configure do |config|
316
+ # Configure HTTP basic authorization: Basic
317
+ config.username = 'YOUR USERNAME'
318
+ config.password = 'YOUR PASSWORD'
319
+ end
320
+
321
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
322
+ maven_repository_href = 'maven_repository_href_example' # String | URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
323
+ data = PulpMavenClient::MavenMavenRepository.new # MavenMavenRepository |
324
+
325
+ begin
326
+ #Update a maven repository
327
+ result = api_instance.update(maven_repository_href, data)
328
+ p result
329
+ rescue PulpMavenClient::ApiError => e
330
+ puts "Exception when calling RepositoriesMavenApi->update: #{e}"
331
+ end
332
+ ```
333
+
334
+ ### Parameters
335
+
336
+
337
+ Name | Type | Description | Notes
338
+ ------------- | ------------- | ------------- | -------------
339
+ **maven_repository_href** | **String**| URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/ |
340
+ **data** | [**MavenMavenRepository**](MavenMavenRepository.md)| |
341
+
342
+ ### Return type
343
+
344
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
345
+
346
+ ### Authorization
347
+
348
+ [Basic](../README.md#Basic)
349
+
350
+ ### HTTP request headers
351
+
352
+ - **Content-Type**: application/json
353
+ - **Accept**: application/json
354
+
@@ -0,0 +1,214 @@
1
+ # PulpMavenClient::RepositoriesMavenVersionsApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete**](RepositoriesMavenVersionsApi.md#delete) | **DELETE** {maven_repository_version_href} | Delete a repository version
8
+ [**list**](RepositoriesMavenVersionsApi.md#list) | **GET** {maven_repository_href}versions/ | List repository versions
9
+ [**read**](RepositoriesMavenVersionsApi.md#read) | **GET** {maven_repository_version_href} | Inspect a repository version
10
+
11
+
12
+
13
+ ## delete
14
+
15
+ > AsyncOperationResponse delete(maven_repository_version_href)
16
+
17
+ Delete a repository version
18
+
19
+ Trigger an asynchronous task to delete a repositroy version.
20
+
21
+ ### Example
22
+
23
+ ```ruby
24
+ # load the gem
25
+ require 'pulp_maven_client'
26
+ # setup authorization
27
+ PulpMavenClient.configure do |config|
28
+ # Configure HTTP basic authorization: Basic
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = PulpMavenClient::RepositoriesMavenVersionsApi.new
34
+ maven_repository_version_href = 'maven_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/maven/maven/1/versions/1/
35
+
36
+ begin
37
+ #Delete a repository version
38
+ result = api_instance.delete(maven_repository_version_href)
39
+ p result
40
+ rescue PulpMavenClient::ApiError => e
41
+ puts "Exception when calling RepositoriesMavenVersionsApi->delete: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **maven_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/maven/maven/1/versions/1/ |
51
+
52
+ ### Return type
53
+
54
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
55
+
56
+ ### Authorization
57
+
58
+ [Basic](../README.md#Basic)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: Not defined
63
+ - **Accept**: application/json
64
+
65
+
66
+ ## list
67
+
68
+ > InlineResponse2004 list(maven_maven_repository_href, opts)
69
+
70
+ List repository versions
71
+
72
+ MavenRepositoryVersion represents a single Maven repository version.
73
+
74
+ ### Example
75
+
76
+ ```ruby
77
+ # load the gem
78
+ require 'pulp_maven_client'
79
+ # setup authorization
80
+ PulpMavenClient.configure do |config|
81
+ # Configure HTTP basic authorization: Basic
82
+ config.username = 'YOUR USERNAME'
83
+ config.password = 'YOUR PASSWORD'
84
+ end
85
+
86
+ api_instance = PulpMavenClient::RepositoriesMavenVersionsApi.new
87
+ maven_maven_repository_href = 'maven_maven_repository_href_example' # String | URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
88
+ opts = {
89
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
90
+ number: 3.4, # Float |
91
+ number__lt: 3.4, # Float | Filter results where number is less than value
92
+ number__lte: 3.4, # Float | Filter results where number is less than or equal to value
93
+ number__gt: 3.4, # Float | Filter results where number is greater than value
94
+ number__gte: 3.4, # Float | Filter results where number is greater than or equal to value
95
+ number__range: 3.4, # Float | Filter results where number is between two comma separated values
96
+ pulp_created__lt: 'pulp_created__lt_example', # String | Filter results where pulp_created is less than value
97
+ pulp_created__lte: 'pulp_created__lte_example', # String | Filter results where pulp_created is less than or equal to value
98
+ pulp_created__gt: 'pulp_created__gt_example', # String | Filter results where pulp_created is greater than value
99
+ pulp_created__gte: 'pulp_created__gte_example', # String | Filter results where pulp_created is greater than or equal to value
100
+ pulp_created__range: 'pulp_created__range_example', # String | Filter results where pulp_created is between two comma separated values
101
+ content: 'content_example', # String | Content Unit referenced by HREF
102
+ pulp_created: 'pulp_created_example', # String | ISO 8601 formatted dates are supported
103
+ limit: 56, # Integer | Number of results to return per page.
104
+ offset: 56, # Integer | The initial index from which to return the results.
105
+ fields: 'fields_example', # String | A list of fields to include in the response.
106
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
107
+ }
108
+
109
+ begin
110
+ #List repository versions
111
+ result = api_instance.list(maven_maven_repository_href, opts)
112
+ p result
113
+ rescue PulpMavenClient::ApiError => e
114
+ puts "Exception when calling RepositoriesMavenVersionsApi->list: #{e}"
115
+ end
116
+ ```
117
+
118
+ ### Parameters
119
+
120
+
121
+ Name | Type | Description | Notes
122
+ ------------- | ------------- | ------------- | -------------
123
+ **maven_maven_repository_href** | **String**| URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/ |
124
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
125
+ **number** | **Float**| | [optional]
126
+ **number__lt** | **Float**| Filter results where number is less than value | [optional]
127
+ **number__lte** | **Float**| Filter results where number is less than or equal to value | [optional]
128
+ **number__gt** | **Float**| Filter results where number is greater than value | [optional]
129
+ **number__gte** | **Float**| Filter results where number is greater than or equal to value | [optional]
130
+ **number__range** | **Float**| Filter results where number is between two comma separated values | [optional]
131
+ **pulp_created__lt** | **String**| Filter results where pulp_created is less than value | [optional]
132
+ **pulp_created__lte** | **String**| Filter results where pulp_created is less than or equal to value | [optional]
133
+ **pulp_created__gt** | **String**| Filter results where pulp_created is greater than value | [optional]
134
+ **pulp_created__gte** | **String**| Filter results where pulp_created is greater than or equal to value | [optional]
135
+ **pulp_created__range** | **String**| Filter results where pulp_created is between two comma separated values | [optional]
136
+ **content** | **String**| Content Unit referenced by HREF | [optional]
137
+ **pulp_created** | **String**| ISO 8601 formatted dates are supported | [optional]
138
+ **limit** | **Integer**| Number of results to return per page. | [optional]
139
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
140
+ **fields** | **String**| A list of fields to include in the response. | [optional]
141
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
142
+
143
+ ### Return type
144
+
145
+ [**InlineResponse2004**](InlineResponse2004.md)
146
+
147
+ ### Authorization
148
+
149
+ [Basic](../README.md#Basic)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: Not defined
154
+ - **Accept**: application/json
155
+
156
+
157
+ ## read
158
+
159
+ > RepositoryVersion read(maven_repository_version_href, opts)
160
+
161
+ Inspect a repository version
162
+
163
+ MavenRepositoryVersion represents a single Maven repository version.
164
+
165
+ ### Example
166
+
167
+ ```ruby
168
+ # load the gem
169
+ require 'pulp_maven_client'
170
+ # setup authorization
171
+ PulpMavenClient.configure do |config|
172
+ # Configure HTTP basic authorization: Basic
173
+ config.username = 'YOUR USERNAME'
174
+ config.password = 'YOUR PASSWORD'
175
+ end
176
+
177
+ api_instance = PulpMavenClient::RepositoriesMavenVersionsApi.new
178
+ maven_repository_version_href = 'maven_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/maven/maven/1/versions/1/
179
+ opts = {
180
+ fields: 'fields_example', # String | A list of fields to include in the response.
181
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
182
+ }
183
+
184
+ begin
185
+ #Inspect a repository version
186
+ result = api_instance.read(maven_repository_version_href, opts)
187
+ p result
188
+ rescue PulpMavenClient::ApiError => e
189
+ puts "Exception when calling RepositoriesMavenVersionsApi->read: #{e}"
190
+ end
191
+ ```
192
+
193
+ ### Parameters
194
+
195
+
196
+ Name | Type | Description | Notes
197
+ ------------- | ------------- | ------------- | -------------
198
+ **maven_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/maven/maven/1/versions/1/ |
199
+ **fields** | **String**| A list of fields to include in the response. | [optional]
200
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
201
+
202
+ ### Return type
203
+
204
+ [**RepositoryVersion**](RepositoryVersion.md)
205
+
206
+ ### Authorization
207
+
208
+ [Basic](../README.md#Basic)
209
+
210
+ ### HTTP request headers
211
+
212
+ - **Content-Type**: Not defined
213
+ - **Accept**: application/json
214
+