pulpcore_client 3.35.0 → 3.36.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 +4 -4
- data/docs/ArtifactDistributionResponse.md +10 -10
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +47 -47
- data/lib/pulpcore_client/models/storage_response.rb +3 -27
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/models/artifact_distribution_response_spec.rb +8 -8
- 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: f9149b3edabb7dff2845572646db2d3d513778506caace5fe9890a4d02501bcd
|
4
|
+
data.tar.gz: b13d8ccb631fa5b2bfbe84dce22699bc461b70e141f2f64312c0335ae84712fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55b5620e98e1e97aaa3bf80eaad8e8b8f5fe0c9566d013b865035b881338428a8456e0f0efd1e0ba529cb0b0758020bc9e08086dba5966dee58d52f08613b875
|
7
|
+
data.tar.gz: d66fb9b08912455ea38c0b89dc3bf89f4949d5259a758f4c53f155267a4564d17c520ce2aa3b5a106d28fb0ba89ddc15fcc0b2e5046524b1a1d87bdaa3f14e20
|
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.36.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.36.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.36.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.36.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -4,28 +4,28 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**content_guard** | **String** | An optional content-guard. | [optional]
|
7
|
+
**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\") |
|
9
8
|
**hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
|
10
|
-
**
|
9
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
11
10
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
11
|
+
**content_guard** | **String** | An optional content-guard. | [optional]
|
12
|
+
**base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly]
|
12
13
|
**pulp_href** | **String** | | [optional] [readonly]
|
13
|
-
**
|
14
|
-
**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\") |
|
14
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
15
15
|
|
16
16
|
## Code Sample
|
17
17
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpcoreClient'
|
20
20
|
|
21
|
-
instance = PulpcoreClient::ArtifactDistributionResponse.new(
|
22
|
-
content_guard: null,
|
21
|
+
instance = PulpcoreClient::ArtifactDistributionResponse.new(base_path: null,
|
23
22
|
hidden: null,
|
24
|
-
|
23
|
+
pulp_created: null,
|
25
24
|
pulp_labels: null,
|
25
|
+
content_guard: null,
|
26
|
+
base_url: null,
|
26
27
|
pulp_href: null,
|
27
|
-
|
28
|
-
base_path: null)
|
28
|
+
name: null)
|
29
29
|
```
|
30
30
|
|
31
31
|
|
@@ -15,53 +15,53 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# A serializer for ArtifactDistribution.
|
17
17
|
class ArtifactDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# An optional content-guard.
|
22
|
-
attr_accessor :content_guard
|
18
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
+
attr_accessor :base_path
|
23
20
|
|
24
21
|
# Whether this distribution should be shown in the content app.
|
25
22
|
attr_accessor :hidden
|
26
23
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
24
|
+
# Timestamp of creation.
|
25
|
+
attr_accessor :pulp_created
|
29
26
|
|
30
27
|
attr_accessor :pulp_labels
|
31
28
|
|
32
|
-
|
29
|
+
# An optional content-guard.
|
30
|
+
attr_accessor :content_guard
|
33
31
|
|
34
|
-
#
|
35
|
-
attr_accessor :
|
32
|
+
# The URL for accessing the publication as defined by this distribution.
|
33
|
+
attr_accessor :base_url
|
36
34
|
|
37
|
-
|
38
|
-
|
35
|
+
attr_accessor :pulp_href
|
36
|
+
|
37
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
38
|
+
attr_accessor :name
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
-
:'
|
44
|
-
:'content_guard' => :'content_guard',
|
43
|
+
:'base_path' => :'base_path',
|
45
44
|
:'hidden' => :'hidden',
|
46
|
-
:'
|
45
|
+
:'pulp_created' => :'pulp_created',
|
47
46
|
:'pulp_labels' => :'pulp_labels',
|
47
|
+
:'content_guard' => :'content_guard',
|
48
|
+
:'base_url' => :'base_url',
|
48
49
|
:'pulp_href' => :'pulp_href',
|
49
|
-
:'
|
50
|
-
:'base_path' => :'base_path'
|
50
|
+
:'name' => :'name'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
|
-
:'
|
58
|
-
:'content_guard' => :'String',
|
57
|
+
:'base_path' => :'String',
|
59
58
|
:'hidden' => :'Boolean',
|
60
|
-
:'
|
59
|
+
:'pulp_created' => :'DateTime',
|
61
60
|
:'pulp_labels' => :'Hash<String, String>',
|
61
|
+
:'content_guard' => :'String',
|
62
|
+
:'base_url' => :'String',
|
62
63
|
:'pulp_href' => :'String',
|
63
|
-
:'
|
64
|
-
:'base_path' => :'String'
|
64
|
+
:'name' => :'String'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
@@ -87,12 +87,8 @@ module PulpcoreClient
|
|
87
87
|
h[k.to_sym] = v
|
88
88
|
}
|
89
89
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
92
|
-
end
|
93
|
-
|
94
|
-
if attributes.key?(:'content_guard')
|
95
|
-
self.content_guard = attributes[:'content_guard']
|
90
|
+
if attributes.key?(:'base_path')
|
91
|
+
self.base_path = attributes[:'base_path']
|
96
92
|
end
|
97
93
|
|
98
94
|
if attributes.key?(:'hidden')
|
@@ -101,8 +97,8 @@ module PulpcoreClient
|
|
101
97
|
self.hidden = false
|
102
98
|
end
|
103
99
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
100
|
+
if attributes.key?(:'pulp_created')
|
101
|
+
self.pulp_created = attributes[:'pulp_created']
|
106
102
|
end
|
107
103
|
|
108
104
|
if attributes.key?(:'pulp_labels')
|
@@ -111,16 +107,20 @@ module PulpcoreClient
|
|
111
107
|
end
|
112
108
|
end
|
113
109
|
|
114
|
-
if attributes.key?(:'
|
115
|
-
self.
|
110
|
+
if attributes.key?(:'content_guard')
|
111
|
+
self.content_guard = attributes[:'content_guard']
|
116
112
|
end
|
117
113
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
self.
|
114
|
+
if attributes.key?(:'base_url')
|
115
|
+
self.base_url = attributes[:'base_url']
|
120
116
|
end
|
121
117
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
118
|
+
if attributes.key?(:'pulp_href')
|
119
|
+
self.pulp_href = attributes[:'pulp_href']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'name')
|
123
|
+
self.name = attributes[:'name']
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
@@ -128,22 +128,22 @@ module PulpcoreClient
|
|
128
128
|
# @return Array for valid properties with the reasons
|
129
129
|
def list_invalid_properties
|
130
130
|
invalid_properties = Array.new
|
131
|
-
if @name.nil?
|
132
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
133
|
-
end
|
134
|
-
|
135
131
|
if @base_path.nil?
|
136
132
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
137
133
|
end
|
138
134
|
|
135
|
+
if @name.nil?
|
136
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
139
|
invalid_properties
|
140
140
|
end
|
141
141
|
|
142
142
|
# Check to see if the all the properties in the model are valid
|
143
143
|
# @return true if the model is valid
|
144
144
|
def valid?
|
145
|
-
return false if @name.nil?
|
146
145
|
return false if @base_path.nil?
|
146
|
+
return false if @name.nil?
|
147
147
|
true
|
148
148
|
end
|
149
149
|
|
@@ -152,14 +152,14 @@ module PulpcoreClient
|
|
152
152
|
def ==(o)
|
153
153
|
return true if self.equal?(o)
|
154
154
|
self.class == o.class &&
|
155
|
-
|
156
|
-
content_guard == o.content_guard &&
|
155
|
+
base_path == o.base_path &&
|
157
156
|
hidden == o.hidden &&
|
158
|
-
|
157
|
+
pulp_created == o.pulp_created &&
|
159
158
|
pulp_labels == o.pulp_labels &&
|
159
|
+
content_guard == o.content_guard &&
|
160
|
+
base_url == o.base_url &&
|
160
161
|
pulp_href == o.pulp_href &&
|
161
|
-
|
162
|
-
base_path == o.base_path
|
162
|
+
name == o.name
|
163
163
|
end
|
164
164
|
|
165
165
|
# @see the `==` method
|
@@ -171,7 +171,7 @@ module PulpcoreClient
|
|
171
171
|
# Calculates hash code according to all attributes.
|
172
172
|
# @return [Integer] Hash code
|
173
173
|
def hash
|
174
|
-
[
|
174
|
+
[base_path, hidden, pulp_created, pulp_labels, content_guard, base_url, pulp_href, name].hash
|
175
175
|
end
|
176
176
|
|
177
177
|
# Builds the object from hash
|
@@ -45,6 +45,9 @@ module PulpcoreClient
|
|
45
45
|
# List of attributes with nullable: true
|
46
46
|
def self.openapi_nullable
|
47
47
|
Set.new([
|
48
|
+
:'total',
|
49
|
+
:'used',
|
50
|
+
:'free'
|
48
51
|
])
|
49
52
|
end
|
50
53
|
|
@@ -80,26 +83,14 @@ module PulpcoreClient
|
|
80
83
|
# @return Array for valid properties with the reasons
|
81
84
|
def list_invalid_properties
|
82
85
|
invalid_properties = Array.new
|
83
|
-
if @total.nil?
|
84
|
-
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
85
|
-
end
|
86
|
-
|
87
86
|
if @total < 0
|
88
87
|
invalid_properties.push('invalid value for "total", must be greater than or equal to 0.')
|
89
88
|
end
|
90
89
|
|
91
|
-
if @used.nil?
|
92
|
-
invalid_properties.push('invalid value for "used", used cannot be nil.')
|
93
|
-
end
|
94
|
-
|
95
90
|
if @used < 0
|
96
91
|
invalid_properties.push('invalid value for "used", must be greater than or equal to 0.')
|
97
92
|
end
|
98
93
|
|
99
|
-
if @free.nil?
|
100
|
-
invalid_properties.push('invalid value for "free", free cannot be nil.')
|
101
|
-
end
|
102
|
-
|
103
94
|
if @free < 0
|
104
95
|
invalid_properties.push('invalid value for "free", must be greater than or equal to 0.')
|
105
96
|
end
|
@@ -110,11 +101,8 @@ module PulpcoreClient
|
|
110
101
|
# Check to see if the all the properties in the model are valid
|
111
102
|
# @return true if the model is valid
|
112
103
|
def valid?
|
113
|
-
return false if @total.nil?
|
114
104
|
return false if @total < 0
|
115
|
-
return false if @used.nil?
|
116
105
|
return false if @used < 0
|
117
|
-
return false if @free.nil?
|
118
106
|
return false if @free < 0
|
119
107
|
true
|
120
108
|
end
|
@@ -122,10 +110,6 @@ module PulpcoreClient
|
|
122
110
|
# Custom attribute writer method with validation
|
123
111
|
# @param [Object] total Value to be assigned
|
124
112
|
def total=(total)
|
125
|
-
if total.nil?
|
126
|
-
fail ArgumentError, 'total cannot be nil'
|
127
|
-
end
|
128
|
-
|
129
113
|
if total < 0
|
130
114
|
fail ArgumentError, 'invalid value for "total", must be greater than or equal to 0.'
|
131
115
|
end
|
@@ -136,10 +120,6 @@ module PulpcoreClient
|
|
136
120
|
# Custom attribute writer method with validation
|
137
121
|
# @param [Object] used Value to be assigned
|
138
122
|
def used=(used)
|
139
|
-
if used.nil?
|
140
|
-
fail ArgumentError, 'used cannot be nil'
|
141
|
-
end
|
142
|
-
|
143
123
|
if used < 0
|
144
124
|
fail ArgumentError, 'invalid value for "used", must be greater than or equal to 0.'
|
145
125
|
end
|
@@ -150,10 +130,6 @@ module PulpcoreClient
|
|
150
130
|
# Custom attribute writer method with validation
|
151
131
|
# @param [Object] free Value to be assigned
|
152
132
|
def free=(free)
|
153
|
-
if free.nil?
|
154
|
-
fail ArgumentError, 'free cannot be nil'
|
155
|
-
end
|
156
|
-
|
157
133
|
if free < 0
|
158
134
|
fail ArgumentError, 'invalid value for "free", must be greater than or equal to 0.'
|
159
135
|
end
|
@@ -32,49 +32,49 @@ 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 "base_path"' 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 "hidden"' 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 "pulp_created"' 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_url"' 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_href"' 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
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "name"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
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.36.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-09-
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|