pulp_maven_client 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -4
- data/docs/MavenMavenDistribution.md +3 -1
- data/docs/MavenMavenDistributionResponse.md +3 -1
- data/docs/MavenMavenPublication.md +20 -0
- data/docs/MavenMavenPublicationResponse.md +28 -0
- data/docs/MavenMavenRepository.md +3 -1
- data/docs/MavenMavenRepositoryResponse.md +3 -1
- data/docs/PaginatedmavenMavenPublicationResponseList.md +24 -0
- data/docs/PatchedmavenMavenDistribution.md +3 -1
- data/docs/PatchedmavenMavenRepository.md +3 -1
- data/docs/PublicationsMavenApi.md +350 -0
- data/docs/RepositoriesMavenApi.md +75 -0
- data/lib/pulp_maven_client/api/publications_maven_api.rb +356 -0
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +66 -0
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +16 -5
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +16 -5
- data/lib/pulp_maven_client/models/maven_maven_publication.rb +225 -0
- data/lib/pulp_maven_client/models/maven_maven_publication_response.rb +264 -0
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +17 -5
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +17 -5
- data/lib/pulp_maven_client/models/paginatedmaven_maven_publication_response_list.rb +257 -0
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +16 -5
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +17 -5
- data/lib/pulp_maven_client/version.rb +1 -1
- data/lib/pulp_maven_client.rb +4 -0
- data/spec/api/publications_maven_api_spec.rb +109 -0
- data/spec/api/repositories_maven_api_spec.rb +13 -0
- data/spec/models/maven_maven_distribution_response_spec.rb +6 -0
- data/spec/models/maven_maven_distribution_spec.rb +6 -0
- data/spec/models/maven_maven_publication_response_spec.rb +66 -0
- data/spec/models/maven_maven_publication_spec.rb +42 -0
- data/spec/models/maven_maven_repository_response_spec.rb +6 -0
- data/spec/models/maven_maven_repository_spec.rb +6 -0
- data/spec/models/paginatedmaven_maven_publication_response_list_spec.rb +54 -0
- data/spec/models/patchedmaven_maven_distribution_spec.rb +6 -0
- data/spec/models/patchedmaven_maven_repository_spec.rb +6 -0
- metadata +18 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f9ee8236440ed9cb5501f20ef4834d3d8a505bfe1701df3510991c5ffd5fda0
|
|
4
|
+
data.tar.gz: 57cce39904acc04966334123eb9a553ef08bc92583a2a25f149b5b9b59afc27e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a641e553382b02f260724bc848fd7379fe2a6511ed20a091826ec155d2e2d1bd5bd1255dec40f5ce419b13a26b01adeeadd76e1fd481e5e370258964dce792eb
|
|
7
|
+
data.tar.gz: 11e62ee250795584f5fec3cfc5e25d2042206c6f282c6e2fd57ad5e9d390f53d1761303708df44e507710202b31d68deebadb4a31bb2d554dcef3a766430d759
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 0.
|
|
10
|
+
- Package version: 0.21.0
|
|
11
11
|
- Generator version: 7.10.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -25,16 +25,16 @@ gem build pulp_maven_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_maven_client-0.
|
|
28
|
+
gem install ./pulp_maven_client-0.21.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_maven_client-0.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_maven_client-0.21.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'pulp_maven_client', '~> 0.
|
|
37
|
+
gem 'pulp_maven_client', '~> 0.21.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -117,6 +117,10 @@ Class | Method | HTTP request | Description
|
|
|
117
117
|
*PulpMavenClient::DistributionsMavenApi* | [**set_label**](docs/DistributionsMavenApi.md#set_label) | **POST** {maven_maven_distribution_href}set_label/ | Set a label
|
|
118
118
|
*PulpMavenClient::DistributionsMavenApi* | [**unset_label**](docs/DistributionsMavenApi.md#unset_label) | **POST** {maven_maven_distribution_href}unset_label/ | Unset a label
|
|
119
119
|
*PulpMavenClient::DistributionsMavenApi* | [**update**](docs/DistributionsMavenApi.md#update) | **PUT** {maven_maven_distribution_href} | Update a maven distribution
|
|
120
|
+
*PulpMavenClient::PublicationsMavenApi* | [**create**](docs/PublicationsMavenApi.md#create) | **POST** /pulp/api/v3/publications/maven/maven/ | Create a maven publication
|
|
121
|
+
*PulpMavenClient::PublicationsMavenApi* | [**delete**](docs/PublicationsMavenApi.md#delete) | **DELETE** {maven_maven_publication_href} | Delete a maven publication
|
|
122
|
+
*PulpMavenClient::PublicationsMavenApi* | [**list**](docs/PublicationsMavenApi.md#list) | **GET** /pulp/api/v3/publications/maven/maven/ | List maven publications
|
|
123
|
+
*PulpMavenClient::PublicationsMavenApi* | [**read**](docs/PublicationsMavenApi.md#read) | **GET** {maven_maven_publication_href} | Inspect a maven publication
|
|
120
124
|
*PulpMavenClient::PulpMavenApi* | [**get**](docs/PulpMavenApi.md#get) | **GET** /pulp/maven/{name}/{path} |
|
|
121
125
|
*PulpMavenClient::PulpMavenApi* | [**put**](docs/PulpMavenApi.md#put) | **PUT** /pulp/maven/{name}/{path} |
|
|
122
126
|
*PulpMavenClient::RemotesMavenApi* | [**create**](docs/RemotesMavenApi.md#create) | **POST** /pulp/api/v3/remotes/maven/maven/ | Create a maven remote
|
|
@@ -134,6 +138,7 @@ Class | Method | HTTP request | Description
|
|
|
134
138
|
*PulpMavenClient::RepositoriesMavenApi* | [**modify**](docs/RepositoriesMavenApi.md#modify) | **POST** {maven_maven_repository_href}modify/ | Modify Repository Content
|
|
135
139
|
*PulpMavenClient::RepositoriesMavenApi* | [**partial_update**](docs/RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository
|
|
136
140
|
*PulpMavenClient::RepositoriesMavenApi* | [**read**](docs/RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository
|
|
141
|
+
*PulpMavenClient::RepositoriesMavenApi* | [**repair_metadata**](docs/RepositoriesMavenApi.md#repair_metadata) | **POST** {maven_maven_repository_href}repair_metadata/ | Repair metadata
|
|
137
142
|
*PulpMavenClient::RepositoriesMavenApi* | [**set_label**](docs/RepositoriesMavenApi.md#set_label) | **POST** {maven_maven_repository_href}set_label/ | Set a label
|
|
138
143
|
*PulpMavenClient::RepositoriesMavenApi* | [**unset_label**](docs/RepositoriesMavenApi.md#unset_label) | **POST** {maven_maven_repository_href}unset_label/ | Unset a label
|
|
139
144
|
*PulpMavenClient::RepositoriesMavenApi* | [**update**](docs/RepositoriesMavenApi.md#update) | **PUT** {maven_maven_repository_href} | Update a maven repository
|
|
@@ -151,6 +156,8 @@ Class | Method | HTTP request | Description
|
|
|
151
156
|
- [PulpMavenClient::MavenMavenDistribution](docs/MavenMavenDistribution.md)
|
|
152
157
|
- [PulpMavenClient::MavenMavenDistributionResponse](docs/MavenMavenDistributionResponse.md)
|
|
153
158
|
- [PulpMavenClient::MavenMavenMetadataResponse](docs/MavenMavenMetadataResponse.md)
|
|
159
|
+
- [PulpMavenClient::MavenMavenPublication](docs/MavenMavenPublication.md)
|
|
160
|
+
- [PulpMavenClient::MavenMavenPublicationResponse](docs/MavenMavenPublicationResponse.md)
|
|
154
161
|
- [PulpMavenClient::MavenMavenRemote](docs/MavenMavenRemote.md)
|
|
155
162
|
- [PulpMavenClient::MavenMavenRemoteResponse](docs/MavenMavenRemoteResponse.md)
|
|
156
163
|
- [PulpMavenClient::MavenMavenRemoteResponseHiddenFieldsInner](docs/MavenMavenRemoteResponseHiddenFieldsInner.md)
|
|
@@ -160,6 +167,7 @@ Class | Method | HTTP request | Description
|
|
|
160
167
|
- [PulpMavenClient::PaginatedmavenMavenArtifactResponseList](docs/PaginatedmavenMavenArtifactResponseList.md)
|
|
161
168
|
- [PulpMavenClient::PaginatedmavenMavenDistributionResponseList](docs/PaginatedmavenMavenDistributionResponseList.md)
|
|
162
169
|
- [PulpMavenClient::PaginatedmavenMavenMetadataResponseList](docs/PaginatedmavenMavenMetadataResponseList.md)
|
|
170
|
+
- [PulpMavenClient::PaginatedmavenMavenPublicationResponseList](docs/PaginatedmavenMavenPublicationResponseList.md)
|
|
163
171
|
- [PulpMavenClient::PaginatedmavenMavenRemoteResponseList](docs/PaginatedmavenMavenRemoteResponseList.md)
|
|
164
172
|
- [PulpMavenClient::PaginatedmavenMavenRepositoryResponseList](docs/PaginatedmavenMavenRepositoryResponseList.md)
|
|
165
173
|
- [PulpMavenClient::PatchedmavenMavenDistribution](docs/PatchedmavenMavenDistribution.md)
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
|
13
13
|
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
14
14
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
|
|
15
|
+
| **publication** | **String** | Publication to be served | [optional] |
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,7 +27,8 @@ instance = PulpMavenClient::MavenMavenDistribution.new(
|
|
|
26
27
|
name: null,
|
|
27
28
|
repository: null,
|
|
28
29
|
repository_version: null,
|
|
29
|
-
remote: null
|
|
30
|
+
remote: null,
|
|
31
|
+
publication: null
|
|
30
32
|
)
|
|
31
33
|
```
|
|
32
34
|
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
|
20
20
|
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
21
21
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
|
|
22
|
+
| **publication** | **String** | Publication to be served | [optional] |
|
|
22
23
|
|
|
23
24
|
## Example
|
|
24
25
|
|
|
@@ -40,7 +41,8 @@ instance = PulpMavenClient::MavenMavenDistributionResponse.new(
|
|
|
40
41
|
name: null,
|
|
41
42
|
repository: null,
|
|
42
43
|
repository_version: null,
|
|
43
|
-
remote: null
|
|
44
|
+
remote: null,
|
|
45
|
+
publication: null
|
|
44
46
|
)
|
|
45
47
|
```
|
|
46
48
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# PulpMavenClient::MavenMavenPublication
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **repository_version** | **String** | | [optional] |
|
|
8
|
+
| **repository** | **String** | A URI of the repository to be published. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'pulp_maven_client'
|
|
14
|
+
|
|
15
|
+
instance = PulpMavenClient::MavenMavenPublication.new(
|
|
16
|
+
repository_version: null,
|
|
17
|
+
repository: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# PulpMavenClient::MavenMavenPublicationResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **pulp_href** | **String** | | [optional][readonly] |
|
|
8
|
+
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
|
9
|
+
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
|
10
|
+
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
|
11
|
+
| **repository_version** | **String** | | [optional] |
|
|
12
|
+
| **repository** | **String** | A URI of the repository to be published. | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'pulp_maven_client'
|
|
18
|
+
|
|
19
|
+
instance = PulpMavenClient::MavenMavenPublicationResponse.new(
|
|
20
|
+
pulp_href: null,
|
|
21
|
+
prn: null,
|
|
22
|
+
pulp_created: null,
|
|
23
|
+
pulp_last_updated: null,
|
|
24
|
+
repository_version: null,
|
|
25
|
+
repository: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
|
11
11
|
| **retain_checkpoints** | **Integer** | Retain X checkpoint publications for the repository. Default is null which retains all checkpoints. | [optional] |
|
|
12
12
|
| **remote** | **String** | An optional remote to use by default when syncing. | [optional] |
|
|
13
|
+
| **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional][default to false] |
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,7 +23,8 @@ instance = PulpMavenClient::MavenMavenRepository.new(
|
|
|
22
23
|
description: null,
|
|
23
24
|
retain_repo_versions: null,
|
|
24
25
|
retain_checkpoints: null,
|
|
25
|
-
remote: null
|
|
26
|
+
remote: null,
|
|
27
|
+
autopublish: null
|
|
26
28
|
)
|
|
27
29
|
```
|
|
28
30
|
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
|
17
17
|
| **retain_checkpoints** | **Integer** | Retain X checkpoint publications for the repository. Default is null which retains all checkpoints. | [optional] |
|
|
18
18
|
| **remote** | **String** | An optional remote to use by default when syncing. | [optional] |
|
|
19
|
+
| **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional][default to false] |
|
|
19
20
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
@@ -34,7 +35,8 @@ instance = PulpMavenClient::MavenMavenRepositoryResponse.new(
|
|
|
34
35
|
description: null,
|
|
35
36
|
retain_repo_versions: null,
|
|
36
37
|
retain_checkpoints: null,
|
|
37
|
-
remote: null
|
|
38
|
+
remote: null,
|
|
39
|
+
autopublish: null
|
|
38
40
|
)
|
|
39
41
|
```
|
|
40
42
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PulpMavenClient::PaginatedmavenMavenPublicationResponseList
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **count** | **Integer** | | |
|
|
8
|
+
| **_next** | **String** | | [optional] |
|
|
9
|
+
| **previous** | **String** | | [optional] |
|
|
10
|
+
| **results** | [**Array<MavenMavenPublicationResponse>**](MavenMavenPublicationResponse.md) | | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'pulp_maven_client'
|
|
16
|
+
|
|
17
|
+
instance = PulpMavenClient::PaginatedmavenMavenPublicationResponseList.new(
|
|
18
|
+
count: 123,
|
|
19
|
+
_next: http://api.example.org/accounts/?offset=400&limit=100,
|
|
20
|
+
previous: http://api.example.org/accounts/?offset=200&limit=100,
|
|
21
|
+
results: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
|
13
13
|
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
14
14
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
|
|
15
|
+
| **publication** | **String** | Publication to be served | [optional] |
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,7 +27,8 @@ instance = PulpMavenClient::PatchedmavenMavenDistribution.new(
|
|
|
26
27
|
name: null,
|
|
27
28
|
repository: null,
|
|
28
29
|
repository_version: null,
|
|
29
|
-
remote: null
|
|
30
|
+
remote: null,
|
|
31
|
+
publication: null
|
|
30
32
|
)
|
|
31
33
|
```
|
|
32
34
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
|
11
11
|
| **retain_checkpoints** | **Integer** | Retain X checkpoint publications for the repository. Default is null which retains all checkpoints. | [optional] |
|
|
12
12
|
| **remote** | **String** | An optional remote to use by default when syncing. | [optional] |
|
|
13
|
+
| **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional][default to false] |
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,7 +23,8 @@ instance = PulpMavenClient::PatchedmavenMavenRepository.new(
|
|
|
22
23
|
description: null,
|
|
23
24
|
retain_repo_versions: null,
|
|
24
25
|
retain_checkpoints: null,
|
|
25
|
-
remote: null
|
|
26
|
+
remote: null,
|
|
27
|
+
autopublish: null
|
|
26
28
|
)
|
|
27
29
|
```
|
|
28
30
|
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
# PulpMavenClient::PublicationsMavenApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create**](PublicationsMavenApi.md#create) | **POST** /pulp/api/v3/publications/maven/maven/ | Create a maven publication |
|
|
8
|
+
| [**delete**](PublicationsMavenApi.md#delete) | **DELETE** {maven_maven_publication_href} | Delete a maven publication |
|
|
9
|
+
| [**list**](PublicationsMavenApi.md#list) | **GET** /pulp/api/v3/publications/maven/maven/ | List maven publications |
|
|
10
|
+
| [**read**](PublicationsMavenApi.md#read) | **GET** {maven_maven_publication_href} | Inspect a maven publication |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## create
|
|
14
|
+
|
|
15
|
+
> <AsyncOperationResponse> create(maven_maven_publication, opts)
|
|
16
|
+
|
|
17
|
+
Create a maven publication
|
|
18
|
+
|
|
19
|
+
Trigger an asynchronous task to publish Maven content.
|
|
20
|
+
|
|
21
|
+
### Examples
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'time'
|
|
25
|
+
require 'pulp_maven_client'
|
|
26
|
+
# setup authorization
|
|
27
|
+
PulpMavenClient.configure do |config|
|
|
28
|
+
# Configure HTTP basic authorization: basicAuth
|
|
29
|
+
config.username = 'YOUR USERNAME'
|
|
30
|
+
config.password = 'YOUR PASSWORD'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
api_instance = PulpMavenClient::PublicationsMavenApi.new
|
|
34
|
+
maven_maven_publication = PulpMavenClient::MavenMavenPublication.new # MavenMavenPublication |
|
|
35
|
+
opts = {
|
|
36
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
# Create a maven publication
|
|
41
|
+
result = api_instance.create(maven_maven_publication, opts)
|
|
42
|
+
p result
|
|
43
|
+
rescue PulpMavenClient::ApiError => e
|
|
44
|
+
puts "Error when calling PublicationsMavenApi->create: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
#### Using the create_with_http_info variant
|
|
49
|
+
|
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
|
51
|
+
|
|
52
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(maven_maven_publication, opts)
|
|
53
|
+
|
|
54
|
+
```ruby
|
|
55
|
+
begin
|
|
56
|
+
# Create a maven publication
|
|
57
|
+
data, status_code, headers = api_instance.create_with_http_info(maven_maven_publication, opts)
|
|
58
|
+
p status_code # => 2xx
|
|
59
|
+
p headers # => { ... }
|
|
60
|
+
p data # => <AsyncOperationResponse>
|
|
61
|
+
rescue PulpMavenClient::ApiError => e
|
|
62
|
+
puts "Error when calling PublicationsMavenApi->create_with_http_info: #{e}"
|
|
63
|
+
end
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
| Name | Type | Description | Notes |
|
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
|
70
|
+
| **maven_maven_publication** | [**MavenMavenPublication**](MavenMavenPublication.md) | | |
|
|
71
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
72
|
+
|
|
73
|
+
### Return type
|
|
74
|
+
|
|
75
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
76
|
+
|
|
77
|
+
### Authorization
|
|
78
|
+
|
|
79
|
+
[basicAuth](../README.md#basicAuth)
|
|
80
|
+
|
|
81
|
+
### HTTP request headers
|
|
82
|
+
|
|
83
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
84
|
+
- **Accept**: application/json
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## delete
|
|
88
|
+
|
|
89
|
+
> delete(maven_maven_publication_href, opts)
|
|
90
|
+
|
|
91
|
+
Delete a maven publication
|
|
92
|
+
|
|
93
|
+
A ViewSet for MavenPublication.
|
|
94
|
+
|
|
95
|
+
### Examples
|
|
96
|
+
|
|
97
|
+
```ruby
|
|
98
|
+
require 'time'
|
|
99
|
+
require 'pulp_maven_client'
|
|
100
|
+
# setup authorization
|
|
101
|
+
PulpMavenClient.configure do |config|
|
|
102
|
+
# Configure HTTP basic authorization: basicAuth
|
|
103
|
+
config.username = 'YOUR USERNAME'
|
|
104
|
+
config.password = 'YOUR PASSWORD'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
api_instance = PulpMavenClient::PublicationsMavenApi.new
|
|
108
|
+
maven_maven_publication_href = 'maven_maven_publication_href_example' # String |
|
|
109
|
+
opts = {
|
|
110
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
begin
|
|
114
|
+
# Delete a maven publication
|
|
115
|
+
api_instance.delete(maven_maven_publication_href, opts)
|
|
116
|
+
rescue PulpMavenClient::ApiError => e
|
|
117
|
+
puts "Error when calling PublicationsMavenApi->delete: #{e}"
|
|
118
|
+
end
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### Using the delete_with_http_info variant
|
|
122
|
+
|
|
123
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
124
|
+
|
|
125
|
+
> <Array(nil, Integer, Hash)> delete_with_http_info(maven_maven_publication_href, opts)
|
|
126
|
+
|
|
127
|
+
```ruby
|
|
128
|
+
begin
|
|
129
|
+
# Delete a maven publication
|
|
130
|
+
data, status_code, headers = api_instance.delete_with_http_info(maven_maven_publication_href, opts)
|
|
131
|
+
p status_code # => 2xx
|
|
132
|
+
p headers # => { ... }
|
|
133
|
+
p data # => nil
|
|
134
|
+
rescue PulpMavenClient::ApiError => e
|
|
135
|
+
puts "Error when calling PublicationsMavenApi->delete_with_http_info: #{e}"
|
|
136
|
+
end
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Parameters
|
|
140
|
+
|
|
141
|
+
| Name | Type | Description | Notes |
|
|
142
|
+
| ---- | ---- | ----------- | ----- |
|
|
143
|
+
| **maven_maven_publication_href** | **String** | | |
|
|
144
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
nil (empty response body)
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
[basicAuth](../README.md#basicAuth)
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: Not defined
|
|
157
|
+
- **Accept**: Not defined
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## list
|
|
161
|
+
|
|
162
|
+
> <PaginatedmavenMavenPublicationResponseList> list(opts)
|
|
163
|
+
|
|
164
|
+
List maven publications
|
|
165
|
+
|
|
166
|
+
A ViewSet for MavenPublication.
|
|
167
|
+
|
|
168
|
+
### Examples
|
|
169
|
+
|
|
170
|
+
```ruby
|
|
171
|
+
require 'time'
|
|
172
|
+
require 'pulp_maven_client'
|
|
173
|
+
# setup authorization
|
|
174
|
+
PulpMavenClient.configure do |config|
|
|
175
|
+
# Configure HTTP basic authorization: basicAuth
|
|
176
|
+
config.username = 'YOUR USERNAME'
|
|
177
|
+
config.password = 'YOUR PASSWORD'
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
api_instance = PulpMavenClient::PublicationsMavenApi.new
|
|
181
|
+
opts = {
|
|
182
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
183
|
+
checkpoint: true, # Boolean | Filter results where checkpoint matches value
|
|
184
|
+
content: 'content_example', # String | Content Unit referenced by HREF/PRN
|
|
185
|
+
content__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
186
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
187
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
188
|
+
ordering: ['-checkpoint'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
189
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
190
|
+
pulp_created: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created matches value
|
|
191
|
+
pulp_created__gt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is greater than value
|
|
192
|
+
pulp_created__gte: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is greater than or equal to value
|
|
193
|
+
pulp_created__isnull: true, # Boolean | Filter results where pulp_created has a null value
|
|
194
|
+
pulp_created__lt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is less than value
|
|
195
|
+
pulp_created__lte: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is less than or equal to value
|
|
196
|
+
pulp_created__range: [Time.now], # Array<Time> | Filter results where pulp_created is between two comma separated values
|
|
197
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
198
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
199
|
+
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
|
200
|
+
repository: 'repository_example', # String | Repository referenced by HREF/PRN
|
|
201
|
+
repository_version: 'repository_version_example', # String |
|
|
202
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
203
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
begin
|
|
207
|
+
# List maven publications
|
|
208
|
+
result = api_instance.list(opts)
|
|
209
|
+
p result
|
|
210
|
+
rescue PulpMavenClient::ApiError => e
|
|
211
|
+
puts "Error when calling PublicationsMavenApi->list: #{e}"
|
|
212
|
+
end
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
#### Using the list_with_http_info variant
|
|
216
|
+
|
|
217
|
+
This returns an Array which contains the response data, status code and headers.
|
|
218
|
+
|
|
219
|
+
> <Array(<PaginatedmavenMavenPublicationResponseList>, Integer, Hash)> list_with_http_info(opts)
|
|
220
|
+
|
|
221
|
+
```ruby
|
|
222
|
+
begin
|
|
223
|
+
# List maven publications
|
|
224
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
|
225
|
+
p status_code # => 2xx
|
|
226
|
+
p headers # => { ... }
|
|
227
|
+
p data # => <PaginatedmavenMavenPublicationResponseList>
|
|
228
|
+
rescue PulpMavenClient::ApiError => e
|
|
229
|
+
puts "Error when calling PublicationsMavenApi->list_with_http_info: #{e}"
|
|
230
|
+
end
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Parameters
|
|
234
|
+
|
|
235
|
+
| Name | Type | Description | Notes |
|
|
236
|
+
| ---- | ---- | ----------- | ----- |
|
|
237
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
238
|
+
| **checkpoint** | **Boolean** | Filter results where checkpoint matches value | [optional] |
|
|
239
|
+
| **content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
|
|
240
|
+
| **content__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
241
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
242
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
243
|
+
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
|
244
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
245
|
+
| **pulp_created** | **Time** | Filter results where pulp_created matches value | [optional] |
|
|
246
|
+
| **pulp_created__gt** | **Time** | Filter results where pulp_created is greater than value | [optional] |
|
|
247
|
+
| **pulp_created__gte** | **Time** | Filter results where pulp_created is greater than or equal to value | [optional] |
|
|
248
|
+
| **pulp_created__isnull** | **Boolean** | Filter results where pulp_created has a null value | [optional] |
|
|
249
|
+
| **pulp_created__lt** | **Time** | Filter results where pulp_created is less than value | [optional] |
|
|
250
|
+
| **pulp_created__lte** | **Time** | Filter results where pulp_created is less than or equal to value | [optional] |
|
|
251
|
+
| **pulp_created__range** | [**Array<Time>**](Time.md) | Filter results where pulp_created is between two comma separated values | [optional] |
|
|
252
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
253
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
254
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
|
255
|
+
| **repository** | **String** | Repository referenced by HREF/PRN | [optional] |
|
|
256
|
+
| **repository_version** | **String** | | [optional] |
|
|
257
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
258
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
259
|
+
|
|
260
|
+
### Return type
|
|
261
|
+
|
|
262
|
+
[**PaginatedmavenMavenPublicationResponseList**](PaginatedmavenMavenPublicationResponseList.md)
|
|
263
|
+
|
|
264
|
+
### Authorization
|
|
265
|
+
|
|
266
|
+
[basicAuth](../README.md#basicAuth)
|
|
267
|
+
|
|
268
|
+
### HTTP request headers
|
|
269
|
+
|
|
270
|
+
- **Content-Type**: Not defined
|
|
271
|
+
- **Accept**: application/json
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
## read
|
|
275
|
+
|
|
276
|
+
> <MavenMavenPublicationResponse> read(maven_maven_publication_href, opts)
|
|
277
|
+
|
|
278
|
+
Inspect a maven publication
|
|
279
|
+
|
|
280
|
+
A ViewSet for MavenPublication.
|
|
281
|
+
|
|
282
|
+
### Examples
|
|
283
|
+
|
|
284
|
+
```ruby
|
|
285
|
+
require 'time'
|
|
286
|
+
require 'pulp_maven_client'
|
|
287
|
+
# setup authorization
|
|
288
|
+
PulpMavenClient.configure do |config|
|
|
289
|
+
# Configure HTTP basic authorization: basicAuth
|
|
290
|
+
config.username = 'YOUR USERNAME'
|
|
291
|
+
config.password = 'YOUR PASSWORD'
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
api_instance = PulpMavenClient::PublicationsMavenApi.new
|
|
295
|
+
maven_maven_publication_href = 'maven_maven_publication_href_example' # String |
|
|
296
|
+
opts = {
|
|
297
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
298
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
299
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
begin
|
|
303
|
+
# Inspect a maven publication
|
|
304
|
+
result = api_instance.read(maven_maven_publication_href, opts)
|
|
305
|
+
p result
|
|
306
|
+
rescue PulpMavenClient::ApiError => e
|
|
307
|
+
puts "Error when calling PublicationsMavenApi->read: #{e}"
|
|
308
|
+
end
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
#### Using the read_with_http_info variant
|
|
312
|
+
|
|
313
|
+
This returns an Array which contains the response data, status code and headers.
|
|
314
|
+
|
|
315
|
+
> <Array(<MavenMavenPublicationResponse>, Integer, Hash)> read_with_http_info(maven_maven_publication_href, opts)
|
|
316
|
+
|
|
317
|
+
```ruby
|
|
318
|
+
begin
|
|
319
|
+
# Inspect a maven publication
|
|
320
|
+
data, status_code, headers = api_instance.read_with_http_info(maven_maven_publication_href, opts)
|
|
321
|
+
p status_code # => 2xx
|
|
322
|
+
p headers # => { ... }
|
|
323
|
+
p data # => <MavenMavenPublicationResponse>
|
|
324
|
+
rescue PulpMavenClient::ApiError => e
|
|
325
|
+
puts "Error when calling PublicationsMavenApi->read_with_http_info: #{e}"
|
|
326
|
+
end
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
### Parameters
|
|
330
|
+
|
|
331
|
+
| Name | Type | Description | Notes |
|
|
332
|
+
| ---- | ---- | ----------- | ----- |
|
|
333
|
+
| **maven_maven_publication_href** | **String** | | |
|
|
334
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
335
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
336
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
337
|
+
|
|
338
|
+
### Return type
|
|
339
|
+
|
|
340
|
+
[**MavenMavenPublicationResponse**](MavenMavenPublicationResponse.md)
|
|
341
|
+
|
|
342
|
+
### Authorization
|
|
343
|
+
|
|
344
|
+
[basicAuth](../README.md#basicAuth)
|
|
345
|
+
|
|
346
|
+
### HTTP request headers
|
|
347
|
+
|
|
348
|
+
- **Content-Type**: Not defined
|
|
349
|
+
- **Accept**: application/json
|
|
350
|
+
|