pulpcore_client 3.24.1 → 3.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ArtifactDistributionResponse.md +10 -10
- data/docs/RepositoriesApi.md +4 -0
- data/lib/pulpcore_client/api/repositories_api.rb +6 -0
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +38 -38
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/repositories_api_spec.rb +2 -0
- data/spec/models/artifact_distribution_response_spec.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1148802c7d4b52255d8ad6e8d438920c2097fe1d24dfdf82eb9b49ae2af4c279
|
4
|
+
data.tar.gz: fe89d65aea77bc0618760afc3929f2fc4a956b2f7f26fb14427363132d69fd0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62ed917a6fe8e4ae03560ce75d440368df7589c73e73b76b7624d06971c2108d380eb6258045c443b19f4f1a26f0b2b25ee6bc856ed56615024e8b0b5074082c
|
7
|
+
data.tar.gz: b75f364ae087098401be5c2641d4986ed5b1a04925781641f26a43ee31a0a41ad89fed51ead9f723cf94a9adb94345ddd44a381f66462f5cff3e35fe43e98481
|
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: 3.
|
10
|
+
- Package version: 3.25.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulpcore_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulpcore_client-3.
|
27
|
+
gem install ./pulpcore_client-3.25.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulpcore_client-3.
|
30
|
+
(for development, run `gem install --dev ./pulpcore_client-3.25.0.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulpcore_client', '~> 3.
|
36
|
+
gem 'pulpcore_client', '~> 3.25.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -4,26 +4,26 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**content_guard** | **String** | An optional content-guard. | [optional]
|
8
7
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
8
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
9
|
+
**base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly]
|
10
|
+
**pulp_labels** | **Hash<String, String>** | | [optional]
|
11
|
+
**content_guard** | **String** | An optional content-guard. | [optional]
|
9
12
|
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
10
13
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
11
|
-
**pulp_labels** | **Hash<String, String>** | | [optional]
|
12
|
-
**base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly]
|
13
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
14
14
|
|
15
15
|
## Code Sample
|
16
16
|
|
17
17
|
```ruby
|
18
18
|
require 'PulpcoreClient'
|
19
19
|
|
20
|
-
instance = PulpcoreClient::ArtifactDistributionResponse.new(
|
21
|
-
|
22
|
-
base_path: null,
|
23
|
-
pulp_created: null,
|
24
|
-
pulp_labels: null,
|
20
|
+
instance = PulpcoreClient::ArtifactDistributionResponse.new(name: null,
|
21
|
+
pulp_href: null,
|
25
22
|
base_url: null,
|
26
|
-
|
23
|
+
pulp_labels: null,
|
24
|
+
content_guard: null,
|
25
|
+
base_path: null,
|
26
|
+
pulp_created: null)
|
27
27
|
```
|
28
28
|
|
29
29
|
|
data/docs/RepositoriesApi.md
CHANGED
@@ -30,6 +30,7 @@ end
|
|
30
30
|
|
31
31
|
api_instance = PulpcoreClient::RepositoriesApi.new
|
32
32
|
opts = {
|
33
|
+
latest_with_content: 'latest_with_content_example', # String | Content Unit referenced by HREF
|
33
34
|
limit: 56, # Integer | Number of results to return per page.
|
34
35
|
name: 'name_example', # String | Filter results where name matches value
|
35
36
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
@@ -51,6 +52,7 @@ opts = {
|
|
51
52
|
retain_repo_versions__lte: 56, # Integer | Filter results where retain_repo_versions is less than or equal to value
|
52
53
|
retain_repo_versions__ne: 56, # Integer | Filter results where retain_repo_versions not equal to value
|
53
54
|
retain_repo_versions__range: [56], # Array<Integer> | Filter results where retain_repo_versions is between two comma separated values
|
55
|
+
with_content: 'with_content_example', # String | Content Unit referenced by HREF
|
54
56
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
55
57
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
56
58
|
}
|
@@ -69,6 +71,7 @@ end
|
|
69
71
|
|
70
72
|
Name | Type | Description | Notes
|
71
73
|
------------- | ------------- | ------------- | -------------
|
74
|
+
**latest_with_content** | **String**| Content Unit referenced by HREF | [optional]
|
72
75
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
73
76
|
**name** | **String**| Filter results where name matches value | [optional]
|
74
77
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
@@ -90,6 +93,7 @@ Name | Type | Description | Notes
|
|
90
93
|
**retain_repo_versions__lte** | **Integer**| Filter results where retain_repo_versions is less than or equal to value | [optional]
|
91
94
|
**retain_repo_versions__ne** | **Integer**| Filter results where retain_repo_versions not equal to value | [optional]
|
92
95
|
**retain_repo_versions__range** | [**Array<Integer>**](Integer.md)| Filter results where retain_repo_versions is between two comma separated values | [optional]
|
96
|
+
**with_content** | **String**| Content Unit referenced by HREF | [optional]
|
93
97
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
94
98
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
95
99
|
|
@@ -22,6 +22,7 @@ module PulpcoreClient
|
|
22
22
|
# List repositories
|
23
23
|
# Endpoint to list all repositories.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
25
26
|
# @option opts [Integer] :limit Number of results to return per page.
|
26
27
|
# @option opts [String] :name Filter results where name matches value
|
27
28
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -43,6 +44,7 @@ module PulpcoreClient
|
|
43
44
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
44
45
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
45
46
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
47
|
+
# @option opts [String] :with_content Content Unit referenced by HREF
|
46
48
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
47
49
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
48
50
|
# @return [PaginatedRepositoryResponseList]
|
@@ -54,6 +56,7 @@ module PulpcoreClient
|
|
54
56
|
# List repositories
|
55
57
|
# Endpoint to list all repositories.
|
56
58
|
# @param [Hash] opts the optional parameters
|
59
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
57
60
|
# @option opts [Integer] :limit Number of results to return per page.
|
58
61
|
# @option opts [String] :name Filter results where name matches value
|
59
62
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -75,6 +78,7 @@ module PulpcoreClient
|
|
75
78
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
76
79
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
77
80
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
81
|
+
# @option opts [String] :with_content Content Unit referenced by HREF
|
78
82
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
79
83
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
80
84
|
# @return [Array<(PaginatedRepositoryResponseList, Integer, Hash)>] PaginatedRepositoryResponseList data, response status code and response headers
|
@@ -95,6 +99,7 @@ module PulpcoreClient
|
|
95
99
|
|
96
100
|
# query parameters
|
97
101
|
query_params = opts[:query_params] || {}
|
102
|
+
query_params[:'latest_with_content'] = opts[:'latest_with_content'] if !opts[:'latest_with_content'].nil?
|
98
103
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
99
104
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
100
105
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
@@ -116,6 +121,7 @@ module PulpcoreClient
|
|
116
121
|
query_params[:'retain_repo_versions__lte'] = opts[:'retain_repo_versions__lte'] if !opts[:'retain_repo_versions__lte'].nil?
|
117
122
|
query_params[:'retain_repo_versions__ne'] = opts[:'retain_repo_versions__ne'] if !opts[:'retain_repo_versions__ne'].nil?
|
118
123
|
query_params[:'retain_repo_versions__range'] = @api_client.build_collection_param(opts[:'retain_repo_versions__range'], :csv) if !opts[:'retain_repo_versions__range'].nil?
|
124
|
+
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
119
125
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
120
126
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
121
127
|
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# A serializer for ArtifactDistribution.
|
17
17
|
class ArtifactDistributionResponse
|
18
|
-
# An optional content-guard.
|
19
|
-
attr_accessor :content_guard
|
20
|
-
|
21
18
|
# A unique name. Ex, `rawhide` and `stable`.
|
22
19
|
attr_accessor :name
|
23
20
|
|
24
|
-
|
25
|
-
attr_accessor :base_path
|
21
|
+
attr_accessor :pulp_href
|
26
22
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
23
|
+
# The URL for accessing the publication as defined by this distribution.
|
24
|
+
attr_accessor :base_url
|
29
25
|
|
30
26
|
attr_accessor :pulp_labels
|
31
27
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
28
|
+
# An optional content-guard.
|
29
|
+
attr_accessor :content_guard
|
34
30
|
|
35
|
-
|
31
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
32
|
+
attr_accessor :base_path
|
33
|
+
|
34
|
+
# Timestamp of creation.
|
35
|
+
attr_accessor :pulp_created
|
36
36
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
38
|
def self.attribute_map
|
39
39
|
{
|
40
|
-
:'content_guard' => :'content_guard',
|
41
40
|
:'name' => :'name',
|
42
|
-
:'
|
43
|
-
:'pulp_created' => :'pulp_created',
|
44
|
-
:'pulp_labels' => :'pulp_labels',
|
41
|
+
:'pulp_href' => :'pulp_href',
|
45
42
|
:'base_url' => :'base_url',
|
46
|
-
:'
|
43
|
+
:'pulp_labels' => :'pulp_labels',
|
44
|
+
:'content_guard' => :'content_guard',
|
45
|
+
:'base_path' => :'base_path',
|
46
|
+
:'pulp_created' => :'pulp_created'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
50
50
|
# Attribute type mapping.
|
51
51
|
def self.openapi_types
|
52
52
|
{
|
53
|
-
:'content_guard' => :'String',
|
54
53
|
:'name' => :'String',
|
55
|
-
:'
|
56
|
-
:'pulp_created' => :'DateTime',
|
57
|
-
:'pulp_labels' => :'Hash<String, String>',
|
54
|
+
:'pulp_href' => :'String',
|
58
55
|
:'base_url' => :'String',
|
59
|
-
:'
|
56
|
+
:'pulp_labels' => :'Hash<String, String>',
|
57
|
+
:'content_guard' => :'String',
|
58
|
+
:'base_path' => :'String',
|
59
|
+
:'pulp_created' => :'DateTime'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
@@ -82,20 +82,16 @@ module PulpcoreClient
|
|
82
82
|
h[k.to_sym] = v
|
83
83
|
}
|
84
84
|
|
85
|
-
if attributes.key?(:'content_guard')
|
86
|
-
self.content_guard = attributes[:'content_guard']
|
87
|
-
end
|
88
|
-
|
89
85
|
if attributes.key?(:'name')
|
90
86
|
self.name = attributes[:'name']
|
91
87
|
end
|
92
88
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
89
|
+
if attributes.key?(:'pulp_href')
|
90
|
+
self.pulp_href = attributes[:'pulp_href']
|
95
91
|
end
|
96
92
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
93
|
+
if attributes.key?(:'base_url')
|
94
|
+
self.base_url = attributes[:'base_url']
|
99
95
|
end
|
100
96
|
|
101
97
|
if attributes.key?(:'pulp_labels')
|
@@ -104,12 +100,16 @@ module PulpcoreClient
|
|
104
100
|
end
|
105
101
|
end
|
106
102
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
103
|
+
if attributes.key?(:'content_guard')
|
104
|
+
self.content_guard = attributes[:'content_guard']
|
109
105
|
end
|
110
106
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
107
|
+
if attributes.key?(:'base_path')
|
108
|
+
self.base_path = attributes[:'base_path']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'pulp_created')
|
112
|
+
self.pulp_created = attributes[:'pulp_created']
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
@@ -141,13 +141,13 @@ module PulpcoreClient
|
|
141
141
|
def ==(o)
|
142
142
|
return true if self.equal?(o)
|
143
143
|
self.class == o.class &&
|
144
|
-
content_guard == o.content_guard &&
|
145
144
|
name == o.name &&
|
146
|
-
|
147
|
-
pulp_created == o.pulp_created &&
|
148
|
-
pulp_labels == o.pulp_labels &&
|
145
|
+
pulp_href == o.pulp_href &&
|
149
146
|
base_url == o.base_url &&
|
150
|
-
|
147
|
+
pulp_labels == o.pulp_labels &&
|
148
|
+
content_guard == o.content_guard &&
|
149
|
+
base_path == o.base_path &&
|
150
|
+
pulp_created == o.pulp_created
|
151
151
|
end
|
152
152
|
|
153
153
|
# @see the `==` method
|
@@ -159,7 +159,7 @@ module PulpcoreClient
|
|
159
159
|
# Calculates hash code according to all attributes.
|
160
160
|
# @return [Integer] Hash code
|
161
161
|
def hash
|
162
|
-
[
|
162
|
+
[name, pulp_href, base_url, pulp_labels, content_guard, base_path, pulp_created].hash
|
163
163
|
end
|
164
164
|
|
165
165
|
# Builds the object from hash
|
@@ -36,6 +36,7 @@ describe 'RepositoriesApi' do
|
|
36
36
|
# List repositories
|
37
37
|
# Endpoint to list all repositories.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
39
40
|
# @option opts [Integer] :limit Number of results to return per page.
|
40
41
|
# @option opts [String] :name Filter results where name matches value
|
41
42
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -57,6 +58,7 @@ describe 'RepositoriesApi' do
|
|
57
58
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
58
59
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
59
60
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
61
|
+
# @option opts [String] :with_content Content Unit referenced by HREF
|
60
62
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
61
63
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
62
64
|
# @return [PaginatedRepositoryResponseList]
|
@@ -32,43 +32,43 @@ describe 'ArtifactDistributionResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpcoreClient::ArtifactDistributionResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "name"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "pulp_href"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "base_url"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "pulp_labels"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "content_guard"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "base_path"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "pulp_created"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulpcore_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|