pulp_maven_client 0.1.0b31572381206 → 0.1.0b31574196301
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -8
- data/docs/ContentArtifactApi.md +6 -6
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsMavenApi.md +8 -8
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +23 -0
- data/docs/InlineResponse2004.md +23 -0
- data/docs/{MavenArtifact.md → MavenMavenArtifact.md} +2 -4
- data/docs/{MavenDistribution.md → MavenMavenDistribution.md} +2 -2
- data/docs/MavenMavenRemote.md +39 -0
- data/docs/MavenMavenRepository.md +27 -0
- data/docs/RemotesMavenApi.md +10 -10
- data/docs/RepositoriesMavenApi.md +354 -0
- data/docs/RepositoriesMavenVersionsApi.md +214 -0
- data/docs/RepositoryVersion.md +25 -0
- data/lib/pulp_maven_client.rb +11 -4
- data/lib/pulp_maven_client/api/content_artifact_api.rb +9 -9
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +10 -10
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +13 -13
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +430 -0
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +268 -0
- data/lib/pulp_maven_client/api_client.rb +1 -1
- data/lib/pulp_maven_client/api_error.rb +1 -1
- data/lib/pulp_maven_client/configuration.rb +1 -1
- data/lib/pulp_maven_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_maven_client/models/content_summary.rb +246 -0
- data/lib/pulp_maven_client/models/inline_response200.rb +15 -3
- data/lib/pulp_maven_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_maven_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_maven_client/models/inline_response2003.rb +247 -0
- data/lib/pulp_maven_client/models/inline_response2004.rb +247 -0
- data/lib/pulp_maven_client/models/{maven_artifact.rb → maven_maven_artifact.rb} +16 -40
- data/lib/pulp_maven_client/models/{maven_distribution.rb → maven_maven_distribution.rb} +17 -23
- data/lib/pulp_maven_client/models/{maven_remote.rb → maven_maven_remote.rb} +69 -105
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +294 -0
- data/lib/pulp_maven_client/models/repository_version.rb +244 -0
- data/lib/pulp_maven_client/version.rb +2 -2
- data/pulp_maven_client.gemspec +1 -1
- data/spec/api/content_artifact_api_spec.rb +3 -3
- data/spec/api/distributions_maven_api_spec.rb +2 -2
- data/spec/api/remotes_maven_api_spec.rb +3 -3
- data/spec/api/repositories_maven_api_spec.rb +116 -0
- data/spec/api/repositories_maven_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +59 -0
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/{maven_artifact_spec.rb → maven_maven_artifact_spec.rb} +7 -13
- data/spec/models/{maven_distribution_spec.rb → maven_maven_distribution_spec.rb} +7 -7
- data/spec/models/{maven_remote_spec.rb → maven_maven_remote_spec.rb} +11 -23
- data/spec/models/maven_maven_repository_spec.rb +71 -0
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/spec_helper.rb +1 -1
- metadata +42 -14
- data/docs/MavenRemote.md +0 -43
@@ -0,0 +1,25 @@
|
|
1
|
+
# PulpMavenClient::RepositoryVersion
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**number** | **Integer** | | [optional] [readonly]
|
10
|
+
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
11
|
+
**content_summary** | [**ContentSummary**](ContentSummary.md) | | [optional]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'PulpMavenClient'
|
17
|
+
|
18
|
+
instance = PulpMavenClient::RepositoryVersion.new(pulp_href: null,
|
19
|
+
pulp_created: null,
|
20
|
+
number: null,
|
21
|
+
base_version: null,
|
22
|
+
content_summary: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
data/lib/pulp_maven_client.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,17 +18,24 @@ require 'pulp_maven_client/configuration'
|
|
18
18
|
|
19
19
|
# Models
|
20
20
|
require 'pulp_maven_client/models/async_operation_response'
|
21
|
+
require 'pulp_maven_client/models/content_summary'
|
21
22
|
require 'pulp_maven_client/models/inline_response200'
|
22
23
|
require 'pulp_maven_client/models/inline_response2001'
|
23
24
|
require 'pulp_maven_client/models/inline_response2002'
|
24
|
-
require 'pulp_maven_client/models/
|
25
|
-
require 'pulp_maven_client/models/
|
26
|
-
require 'pulp_maven_client/models/
|
25
|
+
require 'pulp_maven_client/models/inline_response2003'
|
26
|
+
require 'pulp_maven_client/models/inline_response2004'
|
27
|
+
require 'pulp_maven_client/models/maven_maven_artifact'
|
28
|
+
require 'pulp_maven_client/models/maven_maven_distribution'
|
29
|
+
require 'pulp_maven_client/models/maven_maven_remote'
|
30
|
+
require 'pulp_maven_client/models/maven_maven_repository'
|
31
|
+
require 'pulp_maven_client/models/repository_version'
|
27
32
|
|
28
33
|
# APIs
|
29
34
|
require 'pulp_maven_client/api/content_artifact_api'
|
30
35
|
require 'pulp_maven_client/api/distributions_maven_api'
|
31
36
|
require 'pulp_maven_client/api/remotes_maven_api'
|
37
|
+
require 'pulp_maven_client/api/repositories_maven_api'
|
38
|
+
require 'pulp_maven_client/api/repositories_maven_versions_api'
|
32
39
|
|
33
40
|
module PulpMavenClient
|
34
41
|
class << self
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,9 +21,9 @@ module PulpMavenClient
|
|
21
21
|
end
|
22
22
|
# Create a maven artifact
|
23
23
|
# A ViewSet for MavenArtifact.
|
24
|
-
# @param data [
|
24
|
+
# @param data [MavenMavenArtifact]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [MavenMavenArtifact]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
@@ -31,9 +31,9 @@ module PulpMavenClient
|
|
31
31
|
|
32
32
|
# Create a maven artifact
|
33
33
|
# A ViewSet for MavenArtifact.
|
34
|
-
# @param data [
|
34
|
+
# @param data [MavenMavenArtifact]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(MavenMavenArtifact, Integer, Hash)>] MavenMavenArtifact data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: ContentArtifactApi.create ...'
|
@@ -62,7 +62,7 @@ module PulpMavenClient
|
|
62
62
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'MavenMavenArtifact'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -178,7 +178,7 @@ module PulpMavenClient
|
|
178
178
|
# @param [Hash] opts the optional parameters
|
179
179
|
# @option opts [String] :fields A list of fields to include in the response.
|
180
180
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
181
|
-
# @return [
|
181
|
+
# @return [MavenMavenArtifact]
|
182
182
|
def read(maven_artifact_href, opts = {})
|
183
183
|
data, _status_code, _headers = read_with_http_info(maven_artifact_href, opts)
|
184
184
|
data
|
@@ -190,7 +190,7 @@ module PulpMavenClient
|
|
190
190
|
# @param [Hash] opts the optional parameters
|
191
191
|
# @option opts [String] :fields A list of fields to include in the response.
|
192
192
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
193
|
-
# @return [Array<(
|
193
|
+
# @return [Array<(MavenMavenArtifact, Integer, Hash)>] MavenMavenArtifact data, response status code and response headers
|
194
194
|
def read_with_http_info(maven_artifact_href, opts = {})
|
195
195
|
if @api_client.config.debugging
|
196
196
|
@api_client.config.logger.debug 'Calling API: ContentArtifactApi.read ...'
|
@@ -219,7 +219,7 @@ module PulpMavenClient
|
|
219
219
|
post_body = opts[:body]
|
220
220
|
|
221
221
|
# return_type
|
222
|
-
return_type = opts[:return_type] || '
|
222
|
+
return_type = opts[:return_type] || 'MavenMavenArtifact'
|
223
223
|
|
224
224
|
# auth_names
|
225
225
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,7 +21,7 @@ module PulpMavenClient
|
|
21
21
|
end
|
22
22
|
# Create a maven distribution
|
23
23
|
# Trigger an asynchronous create task
|
24
|
-
# @param data [
|
24
|
+
# @param data [MavenMavenDistribution]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
27
27
|
def create(data, opts = {})
|
@@ -31,7 +31,7 @@ module PulpMavenClient
|
|
31
31
|
|
32
32
|
# Create a maven distribution
|
33
33
|
# Trigger an asynchronous create task
|
34
|
-
# @param data [
|
34
|
+
# @param data [MavenMavenDistribution]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
@@ -234,7 +234,7 @@ module PulpMavenClient
|
|
234
234
|
# Partially update a maven distribution
|
235
235
|
# Trigger an asynchronous partial update task
|
236
236
|
# @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
237
|
-
# @param data [
|
237
|
+
# @param data [MavenMavenDistribution]
|
238
238
|
# @param [Hash] opts the optional parameters
|
239
239
|
# @return [AsyncOperationResponse]
|
240
240
|
def partial_update(maven_distribution_href, data, opts = {})
|
@@ -245,7 +245,7 @@ module PulpMavenClient
|
|
245
245
|
# Partially update a maven distribution
|
246
246
|
# Trigger an asynchronous partial update task
|
247
247
|
# @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
248
|
-
# @param data [
|
248
|
+
# @param data [MavenMavenDistribution]
|
249
249
|
# @param [Hash] opts the optional parameters
|
250
250
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
251
251
|
def partial_update_with_http_info(maven_distribution_href, data, opts = {})
|
@@ -307,7 +307,7 @@ module PulpMavenClient
|
|
307
307
|
# @param [Hash] opts the optional parameters
|
308
308
|
# @option opts [String] :fields A list of fields to include in the response.
|
309
309
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
310
|
-
# @return [
|
310
|
+
# @return [MavenMavenDistribution]
|
311
311
|
def read(maven_distribution_href, opts = {})
|
312
312
|
data, _status_code, _headers = read_with_http_info(maven_distribution_href, opts)
|
313
313
|
data
|
@@ -319,7 +319,7 @@ module PulpMavenClient
|
|
319
319
|
# @param [Hash] opts the optional parameters
|
320
320
|
# @option opts [String] :fields A list of fields to include in the response.
|
321
321
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
322
|
-
# @return [Array<(
|
322
|
+
# @return [Array<(MavenMavenDistribution, Integer, Hash)>] MavenMavenDistribution data, response status code and response headers
|
323
323
|
def read_with_http_info(maven_distribution_href, opts = {})
|
324
324
|
if @api_client.config.debugging
|
325
325
|
@api_client.config.logger.debug 'Calling API: DistributionsMavenApi.read ...'
|
@@ -348,7 +348,7 @@ module PulpMavenClient
|
|
348
348
|
post_body = opts[:body]
|
349
349
|
|
350
350
|
# return_type
|
351
|
-
return_type = opts[:return_type] || '
|
351
|
+
return_type = opts[:return_type] || 'MavenMavenDistribution'
|
352
352
|
|
353
353
|
# auth_names
|
354
354
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -372,7 +372,7 @@ module PulpMavenClient
|
|
372
372
|
# Update a maven distribution
|
373
373
|
# Trigger an asynchronous update task
|
374
374
|
# @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
375
|
-
# @param data [
|
375
|
+
# @param data [MavenMavenDistribution]
|
376
376
|
# @param [Hash] opts the optional parameters
|
377
377
|
# @return [AsyncOperationResponse]
|
378
378
|
def update(maven_distribution_href, data, opts = {})
|
@@ -383,7 +383,7 @@ module PulpMavenClient
|
|
383
383
|
# Update a maven distribution
|
384
384
|
# Trigger an asynchronous update task
|
385
385
|
# @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
386
|
-
# @param data [
|
386
|
+
# @param data [MavenMavenDistribution]
|
387
387
|
# @param [Hash] opts the optional parameters
|
388
388
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
389
389
|
def update_with_http_info(maven_distribution_href, data, opts = {})
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,9 +21,9 @@ module PulpMavenClient
|
|
21
21
|
end
|
22
22
|
# Create a maven remote
|
23
23
|
# A ViewSet for MavenRemote.
|
24
|
-
# @param data [
|
24
|
+
# @param data [MavenMavenRemote]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [MavenMavenRemote]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
@@ -31,9 +31,9 @@ module PulpMavenClient
|
|
31
31
|
|
32
32
|
# Create a maven remote
|
33
33
|
# A ViewSet for MavenRemote.
|
34
|
-
# @param data [
|
34
|
+
# @param data [MavenMavenRemote]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(MavenMavenRemote, Integer, Hash)>] MavenMavenRemote data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.create ...'
|
@@ -62,7 +62,7 @@ module PulpMavenClient
|
|
62
62
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'MavenMavenRemote'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -240,7 +240,7 @@ module PulpMavenClient
|
|
240
240
|
# Partially update a maven remote
|
241
241
|
# Trigger an asynchronous partial update task
|
242
242
|
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
243
|
-
# @param data [
|
243
|
+
# @param data [MavenMavenRemote]
|
244
244
|
# @param [Hash] opts the optional parameters
|
245
245
|
# @return [AsyncOperationResponse]
|
246
246
|
def partial_update(maven_remote_href, data, opts = {})
|
@@ -251,7 +251,7 @@ module PulpMavenClient
|
|
251
251
|
# Partially update a maven remote
|
252
252
|
# Trigger an asynchronous partial update task
|
253
253
|
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
254
|
-
# @param data [
|
254
|
+
# @param data [MavenMavenRemote]
|
255
255
|
# @param [Hash] opts the optional parameters
|
256
256
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
257
257
|
def partial_update_with_http_info(maven_remote_href, data, opts = {})
|
@@ -313,7 +313,7 @@ module PulpMavenClient
|
|
313
313
|
# @param [Hash] opts the optional parameters
|
314
314
|
# @option opts [String] :fields A list of fields to include in the response.
|
315
315
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
316
|
-
# @return [
|
316
|
+
# @return [MavenMavenRemote]
|
317
317
|
def read(maven_remote_href, opts = {})
|
318
318
|
data, _status_code, _headers = read_with_http_info(maven_remote_href, opts)
|
319
319
|
data
|
@@ -325,7 +325,7 @@ module PulpMavenClient
|
|
325
325
|
# @param [Hash] opts the optional parameters
|
326
326
|
# @option opts [String] :fields A list of fields to include in the response.
|
327
327
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
328
|
-
# @return [Array<(
|
328
|
+
# @return [Array<(MavenMavenRemote, Integer, Hash)>] MavenMavenRemote data, response status code and response headers
|
329
329
|
def read_with_http_info(maven_remote_href, opts = {})
|
330
330
|
if @api_client.config.debugging
|
331
331
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.read ...'
|
@@ -354,7 +354,7 @@ module PulpMavenClient
|
|
354
354
|
post_body = opts[:body]
|
355
355
|
|
356
356
|
# return_type
|
357
|
-
return_type = opts[:return_type] || '
|
357
|
+
return_type = opts[:return_type] || 'MavenMavenRemote'
|
358
358
|
|
359
359
|
# auth_names
|
360
360
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -378,7 +378,7 @@ module PulpMavenClient
|
|
378
378
|
# Update a maven remote
|
379
379
|
# Trigger an asynchronous update task
|
380
380
|
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
381
|
-
# @param data [
|
381
|
+
# @param data [MavenMavenRemote]
|
382
382
|
# @param [Hash] opts the optional parameters
|
383
383
|
# @return [AsyncOperationResponse]
|
384
384
|
def update(maven_remote_href, data, opts = {})
|
@@ -389,7 +389,7 @@ module PulpMavenClient
|
|
389
389
|
# Update a maven remote
|
390
390
|
# Trigger an asynchronous update task
|
391
391
|
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
392
|
-
# @param data [
|
392
|
+
# @param data [MavenMavenRemote]
|
393
393
|
# @param [Hash] opts the optional parameters
|
394
394
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
395
395
|
def update_with_http_info(maven_remote_href, data, opts = {})
|
@@ -0,0 +1,430 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpMavenClient
|
16
|
+
class RepositoriesMavenApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a maven repository
|
23
|
+
# A ViewSet for MavenRemote.
|
24
|
+
# @param data [MavenMavenRepository]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [MavenMavenRepository]
|
27
|
+
def create(data, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a maven repository
|
33
|
+
# A ViewSet for MavenRemote.
|
34
|
+
# @param data [MavenMavenRepository]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(MavenMavenRepository, Integer, Hash)>] MavenMavenRepository data, response status code and response headers
|
37
|
+
def create_with_http_info(data, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'data' is set
|
42
|
+
if @api_client.config.client_side_validation && data.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesMavenApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/repositories/maven/maven/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'MavenMavenRepository'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['Basic']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete a maven repository
|
87
|
+
# Trigger an asynchronous task to delete a repository.
|
88
|
+
# @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [AsyncOperationResponse]
|
91
|
+
def delete(maven_repository_href, opts = {})
|
92
|
+
data, _status_code, _headers = delete_with_http_info(maven_repository_href, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Delete a maven repository
|
97
|
+
# Trigger an asynchronous task to delete a repository.
|
98
|
+
# @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
|
+
def delete_with_http_info(maven_repository_href, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.delete ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'maven_repository_href' is set
|
106
|
+
if @api_client.config.client_side_validation && maven_repository_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'maven_repository_href' when calling RepositoriesMavenApi.delete"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '{maven_repository_href}'.sub('{' + 'maven_repository_href' + '}', CGI.escape(maven_repository_href.to_s).gsub('%2F', '/'))
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
119
|
+
|
120
|
+
# form parameters
|
121
|
+
form_params = opts[:form_params] || {}
|
122
|
+
|
123
|
+
# http body (model)
|
124
|
+
post_body = opts[:body]
|
125
|
+
|
126
|
+
# return_type
|
127
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
128
|
+
|
129
|
+
# auth_names
|
130
|
+
auth_names = opts[:auth_names] || ['Basic']
|
131
|
+
|
132
|
+
new_options = opts.merge(
|
133
|
+
:header_params => header_params,
|
134
|
+
:query_params => query_params,
|
135
|
+
:form_params => form_params,
|
136
|
+
:body => post_body,
|
137
|
+
:auth_names => auth_names,
|
138
|
+
:return_type => return_type
|
139
|
+
)
|
140
|
+
|
141
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
+
end
|
145
|
+
return data, status_code, headers
|
146
|
+
end
|
147
|
+
|
148
|
+
# List maven repositorys
|
149
|
+
# A ViewSet for MavenRemote.
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :name
|
152
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
153
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
154
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
155
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
156
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
157
|
+
# @return [InlineResponse2003]
|
158
|
+
def list(opts = {})
|
159
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
160
|
+
data
|
161
|
+
end
|
162
|
+
|
163
|
+
# List maven repositorys
|
164
|
+
# A ViewSet for MavenRemote.
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @option opts [String] :name
|
167
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
168
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
169
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
170
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
171
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
172
|
+
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
173
|
+
def list_with_http_info(opts = {})
|
174
|
+
if @api_client.config.debugging
|
175
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.list ...'
|
176
|
+
end
|
177
|
+
# resource path
|
178
|
+
local_var_path = '/pulp/api/v3/repositories/maven/maven/'
|
179
|
+
|
180
|
+
# query parameters
|
181
|
+
query_params = opts[:query_params] || {}
|
182
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
183
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
184
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
185
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
186
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
187
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
188
|
+
|
189
|
+
# header parameters
|
190
|
+
header_params = opts[:header_params] || {}
|
191
|
+
# HTTP header 'Accept' (if needed)
|
192
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
193
|
+
|
194
|
+
# form parameters
|
195
|
+
form_params = opts[:form_params] || {}
|
196
|
+
|
197
|
+
# http body (model)
|
198
|
+
post_body = opts[:body]
|
199
|
+
|
200
|
+
# return_type
|
201
|
+
return_type = opts[:return_type] || 'InlineResponse2003'
|
202
|
+
|
203
|
+
# auth_names
|
204
|
+
auth_names = opts[:auth_names] || ['Basic']
|
205
|
+
|
206
|
+
new_options = opts.merge(
|
207
|
+
:header_params => header_params,
|
208
|
+
:query_params => query_params,
|
209
|
+
:form_params => form_params,
|
210
|
+
:body => post_body,
|
211
|
+
:auth_names => auth_names,
|
212
|
+
:return_type => return_type
|
213
|
+
)
|
214
|
+
|
215
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
216
|
+
if @api_client.config.debugging
|
217
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
218
|
+
end
|
219
|
+
return data, status_code, headers
|
220
|
+
end
|
221
|
+
|
222
|
+
# Partially update a maven repository
|
223
|
+
# A ViewSet for MavenRemote.
|
224
|
+
# @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
|
225
|
+
# @param data [MavenMavenRepository]
|
226
|
+
# @param [Hash] opts the optional parameters
|
227
|
+
# @return [MavenMavenRepository]
|
228
|
+
def partial_update(maven_repository_href, data, opts = {})
|
229
|
+
data, _status_code, _headers = partial_update_with_http_info(maven_repository_href, data, opts)
|
230
|
+
data
|
231
|
+
end
|
232
|
+
|
233
|
+
# Partially update a maven repository
|
234
|
+
# A ViewSet for MavenRemote.
|
235
|
+
# @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
|
236
|
+
# @param data [MavenMavenRepository]
|
237
|
+
# @param [Hash] opts the optional parameters
|
238
|
+
# @return [Array<(MavenMavenRepository, Integer, Hash)>] MavenMavenRepository data, response status code and response headers
|
239
|
+
def partial_update_with_http_info(maven_repository_href, data, opts = {})
|
240
|
+
if @api_client.config.debugging
|
241
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.partial_update ...'
|
242
|
+
end
|
243
|
+
# verify the required parameter 'maven_repository_href' is set
|
244
|
+
if @api_client.config.client_side_validation && maven_repository_href.nil?
|
245
|
+
fail ArgumentError, "Missing the required parameter 'maven_repository_href' when calling RepositoriesMavenApi.partial_update"
|
246
|
+
end
|
247
|
+
# verify the required parameter 'data' is set
|
248
|
+
if @api_client.config.client_side_validation && data.nil?
|
249
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesMavenApi.partial_update"
|
250
|
+
end
|
251
|
+
# resource path
|
252
|
+
local_var_path = '{maven_repository_href}'.sub('{' + 'maven_repository_href' + '}', CGI.escape(maven_repository_href.to_s).gsub('%2F', '/'))
|
253
|
+
|
254
|
+
# query parameters
|
255
|
+
query_params = opts[:query_params] || {}
|
256
|
+
|
257
|
+
# header parameters
|
258
|
+
header_params = opts[:header_params] || {}
|
259
|
+
# HTTP header 'Accept' (if needed)
|
260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
261
|
+
# HTTP header 'Content-Type'
|
262
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
263
|
+
|
264
|
+
# form parameters
|
265
|
+
form_params = opts[:form_params] || {}
|
266
|
+
|
267
|
+
# http body (model)
|
268
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
269
|
+
|
270
|
+
# return_type
|
271
|
+
return_type = opts[:return_type] || 'MavenMavenRepository'
|
272
|
+
|
273
|
+
# auth_names
|
274
|
+
auth_names = opts[:auth_names] || ['Basic']
|
275
|
+
|
276
|
+
new_options = opts.merge(
|
277
|
+
:header_params => header_params,
|
278
|
+
:query_params => query_params,
|
279
|
+
:form_params => form_params,
|
280
|
+
:body => post_body,
|
281
|
+
:auth_names => auth_names,
|
282
|
+
:return_type => return_type
|
283
|
+
)
|
284
|
+
|
285
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
288
|
+
end
|
289
|
+
return data, status_code, headers
|
290
|
+
end
|
291
|
+
|
292
|
+
# Inspect a maven repository
|
293
|
+
# A ViewSet for MavenRemote.
|
294
|
+
# @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
297
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
298
|
+
# @return [MavenMavenRepository]
|
299
|
+
def read(maven_repository_href, opts = {})
|
300
|
+
data, _status_code, _headers = read_with_http_info(maven_repository_href, opts)
|
301
|
+
data
|
302
|
+
end
|
303
|
+
|
304
|
+
# Inspect a maven repository
|
305
|
+
# A ViewSet for MavenRemote.
|
306
|
+
# @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
|
307
|
+
# @param [Hash] opts the optional parameters
|
308
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
309
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
310
|
+
# @return [Array<(MavenMavenRepository, Integer, Hash)>] MavenMavenRepository data, response status code and response headers
|
311
|
+
def read_with_http_info(maven_repository_href, opts = {})
|
312
|
+
if @api_client.config.debugging
|
313
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.read ...'
|
314
|
+
end
|
315
|
+
# verify the required parameter 'maven_repository_href' is set
|
316
|
+
if @api_client.config.client_side_validation && maven_repository_href.nil?
|
317
|
+
fail ArgumentError, "Missing the required parameter 'maven_repository_href' when calling RepositoriesMavenApi.read"
|
318
|
+
end
|
319
|
+
# resource path
|
320
|
+
local_var_path = '{maven_repository_href}'.sub('{' + 'maven_repository_href' + '}', CGI.escape(maven_repository_href.to_s).gsub('%2F', '/'))
|
321
|
+
|
322
|
+
# query parameters
|
323
|
+
query_params = opts[:query_params] || {}
|
324
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
325
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
326
|
+
|
327
|
+
# header parameters
|
328
|
+
header_params = opts[:header_params] || {}
|
329
|
+
# HTTP header 'Accept' (if needed)
|
330
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
331
|
+
|
332
|
+
# form parameters
|
333
|
+
form_params = opts[:form_params] || {}
|
334
|
+
|
335
|
+
# http body (model)
|
336
|
+
post_body = opts[:body]
|
337
|
+
|
338
|
+
# return_type
|
339
|
+
return_type = opts[:return_type] || 'MavenMavenRepository'
|
340
|
+
|
341
|
+
# auth_names
|
342
|
+
auth_names = opts[:auth_names] || ['Basic']
|
343
|
+
|
344
|
+
new_options = opts.merge(
|
345
|
+
:header_params => header_params,
|
346
|
+
:query_params => query_params,
|
347
|
+
:form_params => form_params,
|
348
|
+
:body => post_body,
|
349
|
+
:auth_names => auth_names,
|
350
|
+
:return_type => return_type
|
351
|
+
)
|
352
|
+
|
353
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
354
|
+
if @api_client.config.debugging
|
355
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
356
|
+
end
|
357
|
+
return data, status_code, headers
|
358
|
+
end
|
359
|
+
|
360
|
+
# Update a maven repository
|
361
|
+
# Trigger an asynchronous task to update a repository.
|
362
|
+
# @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
|
363
|
+
# @param data [MavenMavenRepository]
|
364
|
+
# @param [Hash] opts the optional parameters
|
365
|
+
# @return [AsyncOperationResponse]
|
366
|
+
def update(maven_repository_href, data, opts = {})
|
367
|
+
data, _status_code, _headers = update_with_http_info(maven_repository_href, data, opts)
|
368
|
+
data
|
369
|
+
end
|
370
|
+
|
371
|
+
# Update a maven repository
|
372
|
+
# Trigger an asynchronous task to update a repository.
|
373
|
+
# @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
|
374
|
+
# @param data [MavenMavenRepository]
|
375
|
+
# @param [Hash] opts the optional parameters
|
376
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
377
|
+
def update_with_http_info(maven_repository_href, data, opts = {})
|
378
|
+
if @api_client.config.debugging
|
379
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.update ...'
|
380
|
+
end
|
381
|
+
# verify the required parameter 'maven_repository_href' is set
|
382
|
+
if @api_client.config.client_side_validation && maven_repository_href.nil?
|
383
|
+
fail ArgumentError, "Missing the required parameter 'maven_repository_href' when calling RepositoriesMavenApi.update"
|
384
|
+
end
|
385
|
+
# verify the required parameter 'data' is set
|
386
|
+
if @api_client.config.client_side_validation && data.nil?
|
387
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesMavenApi.update"
|
388
|
+
end
|
389
|
+
# resource path
|
390
|
+
local_var_path = '{maven_repository_href}'.sub('{' + 'maven_repository_href' + '}', CGI.escape(maven_repository_href.to_s).gsub('%2F', '/'))
|
391
|
+
|
392
|
+
# query parameters
|
393
|
+
query_params = opts[:query_params] || {}
|
394
|
+
|
395
|
+
# header parameters
|
396
|
+
header_params = opts[:header_params] || {}
|
397
|
+
# HTTP header 'Accept' (if needed)
|
398
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
399
|
+
# HTTP header 'Content-Type'
|
400
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
401
|
+
|
402
|
+
# form parameters
|
403
|
+
form_params = opts[:form_params] || {}
|
404
|
+
|
405
|
+
# http body (model)
|
406
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
407
|
+
|
408
|
+
# return_type
|
409
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
410
|
+
|
411
|
+
# auth_names
|
412
|
+
auth_names = opts[:auth_names] || ['Basic']
|
413
|
+
|
414
|
+
new_options = opts.merge(
|
415
|
+
:header_params => header_params,
|
416
|
+
:query_params => query_params,
|
417
|
+
:form_params => form_params,
|
418
|
+
:body => post_body,
|
419
|
+
:auth_names => auth_names,
|
420
|
+
:return_type => return_type
|
421
|
+
)
|
422
|
+
|
423
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
424
|
+
if @api_client.config.debugging
|
425
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
426
|
+
end
|
427
|
+
return data, status_code, headers
|
428
|
+
end
|
429
|
+
end
|
430
|
+
end
|