pulp_maven_client 0.8.1 → 0.8.3
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 +11 -7
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentArtifactApi.md +116 -64
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsMavenApi.md +267 -130
- data/docs/MavenMavenArtifact.md +12 -11
- data/docs/MavenMavenArtifactResponse.md +24 -21
- data/docs/MavenMavenDistribution.md +20 -19
- data/docs/MavenMavenDistributionResponse.md +32 -27
- data/docs/MavenMavenRemote.md +48 -47
- data/docs/MavenMavenRemoteResponse.md +48 -45
- data/docs/MavenMavenRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/MavenMavenRepository.md +16 -15
- data/docs/MavenMavenRepositoryResponse.md +28 -25
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedmavenMavenArtifactResponseList.md +14 -13
- data/docs/PaginatedmavenMavenDistributionResponseList.md +14 -13
- data/docs/PaginatedmavenMavenRemoteResponseList.md +14 -13
- data/docs/PaginatedmavenMavenRepositoryResponseList.md +14 -13
- data/docs/PatchedmavenMavenDistribution.md +20 -19
- data/docs/PatchedmavenMavenRemote.md +48 -47
- data/docs/PatchedmavenMavenRepository.md +16 -15
- data/docs/PolicyEnum.md +4 -5
- data/docs/PulpMavenApi.md +61 -26
- data/docs/RemotesMavenApi.md +271 -132
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesMavenApi.md +300 -146
- data/docs/RepositoriesMavenVersionsApi.md +155 -83
- data/docs/RepositoryAddCachedContent.md +8 -7
- data/docs/RepositoryVersionResponse.md +22 -19
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_maven_client/api/content_artifact_api.rb +31 -22
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +66 -40
- data/lib/pulp_maven_client/api/pulp_maven_api.rb +9 -7
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +81 -52
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +79 -49
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +50 -37
- data/lib/pulp_maven_client/api_client.rb +137 -102
- data/lib/pulp_maven_client/api_error.rb +2 -1
- data/lib/pulp_maven_client/configuration.rb +162 -21
- data/lib/pulp_maven_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_maven_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +34 -22
- data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +45 -25
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +34 -22
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +57 -25
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +57 -38
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +71 -42
- data/lib/pulp_maven_client/models/{maven_maven_remote_response_hidden_fields.rb → maven_maven_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +32 -37
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +45 -40
- data/lib/pulp_maven_client/models/paginated_repository_version_response_list.rb +34 -24
- data/lib/pulp_maven_client/models/paginatedmaven_maven_artifact_response_list.rb +34 -24
- data/lib/pulp_maven_client/models/paginatedmaven_maven_distribution_response_list.rb +34 -24
- data/lib/pulp_maven_client/models/paginatedmaven_maven_remote_response_list.rb +34 -24
- data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +34 -24
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +40 -24
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +63 -40
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +35 -38
- data/lib/pulp_maven_client/models/policy_enum.rb +8 -5
- data/lib/pulp_maven_client/models/repair.rb +30 -22
- data/lib/pulp_maven_client/models/repository_add_cached_content.rb +30 -22
- data/lib/pulp_maven_client/models/repository_version_response.rb +44 -26
- data/lib/pulp_maven_client/models/set_label.rb +34 -22
- data/lib/pulp_maven_client/models/set_label_response.rb +34 -22
- data/lib/pulp_maven_client/models/unset_label.rb +32 -22
- data/lib/pulp_maven_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_maven_client/version.rb +2 -2
- data/lib/pulp_maven_client.rb +2 -2
- data/pulp_maven_client.gemspec +9 -6
- data/spec/api/content_artifact_api_spec.rb +9 -8
- data/spec/api/distributions_maven_api_spec.rb +11 -10
- data/spec/api/pulp_maven_api_spec.rb +3 -3
- data/spec/api/remotes_maven_api_spec.rb +18 -16
- data/spec/api/repositories_maven_api_spec.rb +14 -13
- data/spec/api/repositories_maven_versions_api_spec.rb +16 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/maven_maven_artifact_response_spec.rb +20 -19
- data/spec/models/maven_maven_artifact_spec.rb +9 -14
- data/spec/models/maven_maven_distribution_response_spec.rb +29 -22
- data/spec/models/maven_maven_distribution_spec.rb +13 -18
- data/spec/models/{maven_maven_remote_response_hidden_fields_spec.rb → maven_maven_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/maven_maven_remote_response_spec.rb +32 -31
- data/spec/models/maven_maven_remote_spec.rb +27 -32
- data/spec/models/maven_maven_repository_response_spec.rb +22 -21
- data/spec/models/maven_maven_repository_spec.rb +11 -16
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedmaven_maven_artifact_response_list_spec.rb +10 -15
- data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedmaven_maven_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedmaven_maven_repository_response_list_spec.rb +10 -15
- data/spec/models/patchedmaven_maven_distribution_spec.rb +13 -18
- data/spec/models/patchedmaven_maven_remote_spec.rb +27 -32
- data/spec/models/patchedmaven_maven_repository_spec.rb +11 -16
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_cached_content_spec.rb +7 -12
- data/spec/models/repository_version_response_spec.rb +19 -18
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +78 -54
- data/docs/MavenMavenRemoteResponseHiddenFields.md +0 -19
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bba4422c7d45be1a9fe2f178e8a5a73f70e68d780da250369f533aa2c9d916df
|
4
|
+
data.tar.gz: e779556f4d6cfac4ff81b7f8c6d1215c6180185f90113bee0719a43a41723824
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5a2d480cb8f04e57d3749d66bdbab32471d8c8794e038a2172c39c83aaf350c50ec7766de1a4a611c77d3a3cf53b33edcdb1cec21998387e7a62e7bbc1cbc46
|
7
|
+
data.tar.gz: f4054adfcca341bf97427278ab40b3897e6437504da27621c30e484e605bc80ee98f0db7c8241c7eccfa69ae3d7ebb596a1920598ddb4257f54b59bffbe601a9
|
data/README.md
CHANGED
@@ -7,7 +7,8 @@ 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.8.
|
10
|
+
- Package version: 0.8.3
|
11
|
+
- Generator version: 7.10.0
|
11
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
14
|
|
@@ -24,16 +25,16 @@ gem build pulp_maven_client.gemspec
|
|
24
25
|
Then either install the gem locally:
|
25
26
|
|
26
27
|
```shell
|
27
|
-
gem install ./pulp_maven_client-0.8.
|
28
|
+
gem install ./pulp_maven_client-0.8.3.gem
|
28
29
|
```
|
29
30
|
|
30
|
-
(for development, run `gem install --dev ./pulp_maven_client-0.8.
|
31
|
+
(for development, run `gem install --dev ./pulp_maven_client-0.8.3.gem` to install the development dependencies)
|
31
32
|
|
32
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
34
|
|
34
35
|
Finally add this to the Gemfile:
|
35
36
|
|
36
|
-
gem 'pulp_maven_client', '~> 0.8.
|
37
|
+
gem 'pulp_maven_client', '~> 0.8.3'
|
37
38
|
|
38
39
|
### Install from Git
|
39
40
|
|
@@ -62,10 +63,12 @@ PulpMavenClient.configure do |config|
|
|
62
63
|
# Configure HTTP basic authorization: basicAuth
|
63
64
|
config.username = 'YOUR_USERNAME'
|
64
65
|
config.password = 'YOUR_PASSWORD'
|
66
|
+
# Configure faraday connection
|
67
|
+
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
|
65
68
|
end
|
66
69
|
|
67
70
|
api_instance = PulpMavenClient::ContentArtifactApi.new
|
68
|
-
maven_maven_artifact = PulpMavenClient::MavenMavenArtifact.new # MavenMavenArtifact |
|
71
|
+
maven_maven_artifact = PulpMavenClient::MavenMavenArtifact.new({artifact: 'artifact_example', relative_path: 'relative_path_example'}) # MavenMavenArtifact |
|
69
72
|
|
70
73
|
begin
|
71
74
|
#Create a maven artifact
|
@@ -79,7 +82,7 @@ end
|
|
79
82
|
|
80
83
|
## Documentation for API Endpoints
|
81
84
|
|
82
|
-
All URIs are relative to *http://
|
85
|
+
All URIs are relative to *http://localhost:24817*
|
83
86
|
|
84
87
|
Class | Method | HTTP request | Description
|
85
88
|
------------ | ------------- | ------------- | -------------
|
@@ -129,7 +132,7 @@ Class | Method | HTTP request | Description
|
|
129
132
|
- [PulpMavenClient::MavenMavenDistributionResponse](docs/MavenMavenDistributionResponse.md)
|
130
133
|
- [PulpMavenClient::MavenMavenRemote](docs/MavenMavenRemote.md)
|
131
134
|
- [PulpMavenClient::MavenMavenRemoteResponse](docs/MavenMavenRemoteResponse.md)
|
132
|
-
- [PulpMavenClient::
|
135
|
+
- [PulpMavenClient::MavenMavenRemoteResponseHiddenFieldsInner](docs/MavenMavenRemoteResponseHiddenFieldsInner.md)
|
133
136
|
- [PulpMavenClient::MavenMavenRepository](docs/MavenMavenRepository.md)
|
134
137
|
- [PulpMavenClient::MavenMavenRepositoryResponse](docs/MavenMavenRepositoryResponse.md)
|
135
138
|
- [PulpMavenClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
|
@@ -153,6 +156,7 @@ Class | Method | HTTP request | Description
|
|
153
156
|
## Documentation for Authorization
|
154
157
|
|
155
158
|
|
159
|
+
Authentication schemes defined for the API:
|
156
160
|
### basicAuth
|
157
161
|
|
158
162
|
- **Type**: HTTP basic authentication
|
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**task** | **String** | The href of the task. |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **task** | **String** | The href of the task. | |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'pulp_maven_client'
|
13
13
|
|
14
|
-
instance = PulpMavenClient::AsyncOperationResponse.new(
|
14
|
+
instance = PulpMavenClient::AsyncOperationResponse.new(
|
15
|
+
task: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
data/docs/ContentArtifactApi.md
CHANGED
@@ -1,27 +1,26 @@
|
|
1
1
|
# PulpMavenClient::ContentArtifactApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**create**](ContentArtifactApi.md#create) | **POST** /pulp/api/v3/content/maven/artifact/ | Create a maven artifact
|
8
|
-
[**list**](ContentArtifactApi.md#list) | **GET** /pulp/api/v3/content/maven/artifact/ | List maven artifacts
|
9
|
-
[**read**](ContentArtifactApi.md#read) | **GET** {maven_maven_artifact_href} | Inspect a maven artifact
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
10
4
|
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create**](ContentArtifactApi.md#create) | **POST** /pulp/api/v3/content/maven/artifact/ | Create a maven artifact |
|
8
|
+
| [**list**](ContentArtifactApi.md#list) | **GET** /pulp/api/v3/content/maven/artifact/ | List maven artifacts |
|
9
|
+
| [**read**](ContentArtifactApi.md#read) | **GET** {maven_maven_artifact_href} | Inspect a maven artifact |
|
11
10
|
|
12
11
|
|
13
12
|
## create
|
14
13
|
|
15
|
-
> MavenMavenArtifactResponse create(maven_maven_artifact)
|
14
|
+
> <MavenMavenArtifactResponse> create(maven_maven_artifact)
|
16
15
|
|
17
16
|
Create a maven artifact
|
18
17
|
|
19
18
|
A ViewSet for MavenArtifact.
|
20
19
|
|
21
|
-
###
|
20
|
+
### Examples
|
22
21
|
|
23
22
|
```ruby
|
24
|
-
|
23
|
+
require 'time'
|
25
24
|
require 'pulp_maven_client'
|
26
25
|
# setup authorization
|
27
26
|
PulpMavenClient.configure do |config|
|
@@ -31,23 +30,40 @@ PulpMavenClient.configure do |config|
|
|
31
30
|
end
|
32
31
|
|
33
32
|
api_instance = PulpMavenClient::ContentArtifactApi.new
|
34
|
-
maven_maven_artifact = PulpMavenClient::MavenMavenArtifact.new # MavenMavenArtifact |
|
33
|
+
maven_maven_artifact = PulpMavenClient::MavenMavenArtifact.new({artifact: 'artifact_example', relative_path: 'relative_path_example'}) # MavenMavenArtifact |
|
35
34
|
|
36
35
|
begin
|
37
|
-
#Create a maven artifact
|
36
|
+
# Create a maven artifact
|
38
37
|
result = api_instance.create(maven_maven_artifact)
|
39
38
|
p result
|
40
39
|
rescue PulpMavenClient::ApiError => e
|
41
|
-
puts "
|
40
|
+
puts "Error when calling ContentArtifactApi->create: #{e}"
|
42
41
|
end
|
43
42
|
```
|
44
43
|
|
45
|
-
|
44
|
+
#### Using the create_with_http_info variant
|
45
|
+
|
46
|
+
This returns an Array which contains the response data, status code and headers.
|
47
|
+
|
48
|
+
> <Array(<MavenMavenArtifactResponse>, Integer, Hash)> create_with_http_info(maven_maven_artifact)
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
begin
|
52
|
+
# Create a maven artifact
|
53
|
+
data, status_code, headers = api_instance.create_with_http_info(maven_maven_artifact)
|
54
|
+
p status_code # => 2xx
|
55
|
+
p headers # => { ... }
|
56
|
+
p data # => <MavenMavenArtifactResponse>
|
57
|
+
rescue PulpMavenClient::ApiError => e
|
58
|
+
puts "Error when calling ContentArtifactApi->create_with_http_info: #{e}"
|
59
|
+
end
|
60
|
+
```
|
46
61
|
|
62
|
+
### Parameters
|
47
63
|
|
48
|
-
Name | Type | Description
|
49
|
-
|
50
|
-
**maven_maven_artifact** | [**MavenMavenArtifact**](MavenMavenArtifact.md)| |
|
64
|
+
| Name | Type | Description | Notes |
|
65
|
+
| ---- | ---- | ----------- | ----- |
|
66
|
+
| **maven_maven_artifact** | [**MavenMavenArtifact**](MavenMavenArtifact.md) | | |
|
51
67
|
|
52
68
|
### Return type
|
53
69
|
|
@@ -65,16 +81,16 @@ Name | Type | Description | Notes
|
|
65
81
|
|
66
82
|
## list
|
67
83
|
|
68
|
-
> PaginatedmavenMavenArtifactResponseList list(opts)
|
84
|
+
> <PaginatedmavenMavenArtifactResponseList> list(opts)
|
69
85
|
|
70
86
|
List maven artifacts
|
71
87
|
|
72
88
|
A ViewSet for MavenArtifact.
|
73
89
|
|
74
|
-
###
|
90
|
+
### Examples
|
75
91
|
|
76
92
|
```ruby
|
77
|
-
|
93
|
+
require 'time'
|
78
94
|
require 'pulp_maven_client'
|
79
95
|
# setup authorization
|
80
96
|
PulpMavenClient.configure do |config|
|
@@ -90,49 +106,68 @@ opts = {
|
|
90
106
|
group_id: 'group_id_example', # String | Filter results where group_id matches value
|
91
107
|
limit: 56, # Integer | Number of results to return per page.
|
92
108
|
offset: 56, # Integer | The initial index from which to return the results.
|
93
|
-
ordering: ['
|
94
|
-
orphaned_for:
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
109
|
+
ordering: ['-artifact_id'], # 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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `group_id` - Group id * `-group_id` - Group id (descending) * `artifact_id` - Artifact id * `-artifact_id` - Artifact id (descending) * `version` - Version * `-version` - Version (descending) * `filename` - Filename * `-filename` - Filename (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
110
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
111
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
112
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
113
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
114
|
+
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
115
|
+
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
116
|
+
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
117
|
+
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
|
101
118
|
version: 'version_example', # String | Filter results where version matches value
|
102
|
-
fields: ['
|
103
|
-
exclude_fields: ['
|
119
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
120
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
104
121
|
}
|
105
122
|
|
106
123
|
begin
|
107
|
-
#List maven artifacts
|
124
|
+
# List maven artifacts
|
108
125
|
result = api_instance.list(opts)
|
109
126
|
p result
|
110
127
|
rescue PulpMavenClient::ApiError => e
|
111
|
-
puts "
|
128
|
+
puts "Error when calling ContentArtifactApi->list: #{e}"
|
112
129
|
end
|
113
130
|
```
|
114
131
|
|
115
|
-
|
132
|
+
#### Using the list_with_http_info variant
|
116
133
|
|
134
|
+
This returns an Array which contains the response data, status code and headers.
|
117
135
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
+
> <Array(<PaginatedmavenMavenArtifactResponseList>, Integer, Hash)> list_with_http_info(opts)
|
137
|
+
|
138
|
+
```ruby
|
139
|
+
begin
|
140
|
+
# List maven artifacts
|
141
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
142
|
+
p status_code # => 2xx
|
143
|
+
p headers # => { ... }
|
144
|
+
p data # => <PaginatedmavenMavenArtifactResponseList>
|
145
|
+
rescue PulpMavenClient::ApiError => e
|
146
|
+
puts "Error when calling ContentArtifactApi->list_with_http_info: #{e}"
|
147
|
+
end
|
148
|
+
```
|
149
|
+
|
150
|
+
### Parameters
|
151
|
+
|
152
|
+
| Name | Type | Description | Notes |
|
153
|
+
| ---- | ---- | ----------- | ----- |
|
154
|
+
| **artifact_id** | **String** | Filter results where artifact_id matches value | [optional] |
|
155
|
+
| **filename** | **String** | Filter results where filename matches value | [optional] |
|
156
|
+
| **group_id** | **String** | Filter results where group_id matches value | [optional] |
|
157
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
158
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
159
|
+
| **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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `group_id` - Group id * `-group_id` - Group id (descending) * `artifact_id` - Artifact id * `-artifact_id` - Artifact id (descending) * `version` - Version * `-version` - Version (descending) * `filename` - Filename * `-filename` - Filename (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
160
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
161
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
162
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
163
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
164
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
165
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
166
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
167
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
168
|
+
| **version** | **String** | Filter results where version matches value | [optional] |
|
169
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
170
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
136
171
|
|
137
172
|
### Return type
|
138
173
|
|
@@ -150,16 +185,16 @@ Name | Type | Description | Notes
|
|
150
185
|
|
151
186
|
## read
|
152
187
|
|
153
|
-
> MavenMavenArtifactResponse read(maven_maven_artifact_href, opts)
|
188
|
+
> <MavenMavenArtifactResponse> read(maven_maven_artifact_href, opts)
|
154
189
|
|
155
190
|
Inspect a maven artifact
|
156
191
|
|
157
192
|
A ViewSet for MavenArtifact.
|
158
193
|
|
159
|
-
###
|
194
|
+
### Examples
|
160
195
|
|
161
196
|
```ruby
|
162
|
-
|
197
|
+
require 'time'
|
163
198
|
require 'pulp_maven_client'
|
164
199
|
# setup authorization
|
165
200
|
PulpMavenClient.configure do |config|
|
@@ -171,27 +206,44 @@ end
|
|
171
206
|
api_instance = PulpMavenClient::ContentArtifactApi.new
|
172
207
|
maven_maven_artifact_href = 'maven_maven_artifact_href_example' # String |
|
173
208
|
opts = {
|
174
|
-
fields: ['
|
175
|
-
exclude_fields: ['
|
209
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
210
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
176
211
|
}
|
177
212
|
|
178
213
|
begin
|
179
|
-
#Inspect a maven artifact
|
214
|
+
# Inspect a maven artifact
|
180
215
|
result = api_instance.read(maven_maven_artifact_href, opts)
|
181
216
|
p result
|
182
217
|
rescue PulpMavenClient::ApiError => e
|
183
|
-
puts "
|
218
|
+
puts "Error when calling ContentArtifactApi->read: #{e}"
|
184
219
|
end
|
185
220
|
```
|
186
221
|
|
187
|
-
|
222
|
+
#### Using the read_with_http_info variant
|
223
|
+
|
224
|
+
This returns an Array which contains the response data, status code and headers.
|
225
|
+
|
226
|
+
> <Array(<MavenMavenArtifactResponse>, Integer, Hash)> read_with_http_info(maven_maven_artifact_href, opts)
|
188
227
|
|
228
|
+
```ruby
|
229
|
+
begin
|
230
|
+
# Inspect a maven artifact
|
231
|
+
data, status_code, headers = api_instance.read_with_http_info(maven_maven_artifact_href, opts)
|
232
|
+
p status_code # => 2xx
|
233
|
+
p headers # => { ... }
|
234
|
+
p data # => <MavenMavenArtifactResponse>
|
235
|
+
rescue PulpMavenClient::ApiError => e
|
236
|
+
puts "Error when calling ContentArtifactApi->read_with_http_info: #{e}"
|
237
|
+
end
|
238
|
+
```
|
239
|
+
|
240
|
+
### Parameters
|
189
241
|
|
190
|
-
Name | Type | Description
|
191
|
-
|
192
|
-
**maven_maven_artifact_href** | **String
|
193
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
194
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
242
|
+
| Name | Type | Description | Notes |
|
243
|
+
| ---- | ---- | ----------- | ----- |
|
244
|
+
| **maven_maven_artifact_href** | **String** | | |
|
245
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
246
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
195
247
|
|
196
248
|
### Return type
|
197
249
|
|
@@ -2,20 +2,21 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**added** | **Hash<String, Object>** | |
|
8
|
-
**removed** | **Hash<String, Object>** | |
|
9
|
-
**present** | **Hash<String, Object>** | |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **added** | **Hash<String, Object>** | | |
|
8
|
+
| **removed** | **Hash<String, Object>** | | |
|
9
|
+
| **present** | **Hash<String, Object>** | | |
|
10
10
|
|
11
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'pulp_maven_client'
|
15
15
|
|
16
|
-
instance = PulpMavenClient::ContentSummaryResponse.new(
|
17
|
-
|
18
|
-
|
16
|
+
instance = PulpMavenClient::ContentSummaryResponse.new(
|
17
|
+
added: null,
|
18
|
+
removed: null,
|
19
|
+
present: null
|
20
|
+
)
|
19
21
|
```
|
20
22
|
|
21
|
-
|