pulpcore_client 3.90.1 → 3.91.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff4a63784093db3a7fa133226a20242539659a5221e2ad5c716dea0138fd99e1
|
4
|
+
data.tar.gz: 4302d514a5ac420098ea8ffaa4dcda500b5a3979bdcbf7d643bf81c5d7437d92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5a0c1fb342c76f73fa1f3fdb69549d0d18a9348e742c998ca8f92e954cd897ff6c6f7399bf1e7a1fff3ceabeff95fbf31964b6930dd67bb14d5c2d5977936b4
|
7
|
+
data.tar.gz: 3fd61c7faa20ff5e2eb094997ecc8583d3635104288a3e8593c42cf1289ce1d1219de993bd38224ea11eb6c1539e5dad5a70ada3017baefe4953a379f0bf0c06
|
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.91.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 pulpcore_client.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./pulpcore_client-3.
|
28
|
+
gem install ./pulpcore_client-3.91.0.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./pulpcore_client-3.
|
31
|
+
(for development, run `gem install --dev ./pulpcore_client-3.91.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 'pulpcore_client', '~> 3.
|
37
|
+
gem 'pulpcore_client', '~> 3.91.0'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
8
|
-
| **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] |
|
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
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
9
|
+
| **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] |
|
10
|
+
| **pulp_href** | **String** | | [optional][readonly] |
|
11
|
+
| **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
|
12
|
+
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
13
|
+
| **no_content_change_since** | **String** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional][readonly] |
|
14
|
+
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
10
15
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
11
|
-
| **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\") | |
|
12
16
|
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
13
|
-
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
14
17
|
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
15
|
-
| **pulp_href** | **String** | | [optional][readonly] |
|
16
|
-
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
17
|
-
| **no_content_change_since** | **String** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional][readonly] |
|
18
18
|
|
19
19
|
## Example
|
20
20
|
|
@@ -22,17 +22,17 @@
|
|
22
22
|
require 'pulpcore_client'
|
23
23
|
|
24
24
|
instance = PulpcoreClient::ArtifactDistributionResponse.new(
|
25
|
-
base_url: null,
|
26
|
-
pulp_last_updated: null,
|
27
|
-
pulp_labels: null,
|
28
|
-
name: null,
|
29
25
|
base_path: null,
|
30
|
-
|
31
|
-
|
32
|
-
hidden: null,
|
26
|
+
pulp_labels: null,
|
27
|
+
pulp_last_updated: null,
|
33
28
|
pulp_href: null,
|
29
|
+
base_url: null,
|
30
|
+
prn: null,
|
31
|
+
no_content_change_since: null,
|
34
32
|
content_guard: null,
|
35
|
-
|
33
|
+
name: null,
|
34
|
+
pulp_created: null,
|
35
|
+
hidden: null
|
36
36
|
)
|
37
37
|
```
|
38
38
|
|
@@ -16,51 +16,51 @@ require 'time'
|
|
16
16
|
module PulpcoreClient
|
17
17
|
# A serializer for ArtifactDistribution.
|
18
18
|
class ArtifactDistributionResponse
|
19
|
-
# The
|
20
|
-
attr_accessor :
|
21
|
-
|
22
|
-
# 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.
|
23
|
-
attr_accessor :pulp_last_updated
|
19
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
20
|
+
attr_accessor :base_path
|
24
21
|
|
25
22
|
attr_accessor :pulp_labels
|
26
23
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
24
|
+
# 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.
|
25
|
+
attr_accessor :pulp_last_updated
|
29
26
|
|
30
|
-
|
31
|
-
attr_accessor :base_path
|
27
|
+
attr_accessor :pulp_href
|
32
28
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
29
|
+
# The URL for accessing the publication as defined by this distribution.
|
30
|
+
attr_accessor :base_url
|
35
31
|
|
36
32
|
# The Pulp Resource Name (PRN).
|
37
33
|
attr_accessor :prn
|
38
34
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
41
|
-
|
42
|
-
attr_accessor :pulp_href
|
35
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
36
|
+
attr_accessor :no_content_change_since
|
43
37
|
|
44
38
|
# An optional content-guard.
|
45
39
|
attr_accessor :content_guard
|
46
40
|
|
47
|
-
#
|
48
|
-
attr_accessor :
|
41
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
42
|
+
attr_accessor :name
|
43
|
+
|
44
|
+
# Timestamp of creation.
|
45
|
+
attr_accessor :pulp_created
|
46
|
+
|
47
|
+
# Whether this distribution should be shown in the content app.
|
48
|
+
attr_accessor :hidden
|
49
49
|
|
50
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
51
|
def self.attribute_map
|
52
52
|
{
|
53
|
-
:'base_url' => :'base_url',
|
54
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
55
|
-
:'pulp_labels' => :'pulp_labels',
|
56
|
-
:'name' => :'name',
|
57
53
|
:'base_path' => :'base_path',
|
58
|
-
:'
|
59
|
-
:'
|
60
|
-
:'hidden' => :'hidden',
|
54
|
+
:'pulp_labels' => :'pulp_labels',
|
55
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
61
56
|
:'pulp_href' => :'pulp_href',
|
57
|
+
:'base_url' => :'base_url',
|
58
|
+
:'prn' => :'prn',
|
59
|
+
:'no_content_change_since' => :'no_content_change_since',
|
62
60
|
:'content_guard' => :'content_guard',
|
63
|
-
:'
|
61
|
+
:'name' => :'name',
|
62
|
+
:'pulp_created' => :'pulp_created',
|
63
|
+
:'hidden' => :'hidden'
|
64
64
|
}
|
65
65
|
end
|
66
66
|
|
@@ -72,17 +72,17 @@ module PulpcoreClient
|
|
72
72
|
# Attribute type mapping.
|
73
73
|
def self.openapi_types
|
74
74
|
{
|
75
|
-
:'base_url' => :'String',
|
76
|
-
:'pulp_last_updated' => :'Time',
|
77
|
-
:'pulp_labels' => :'Hash<String, String>',
|
78
|
-
:'name' => :'String',
|
79
75
|
:'base_path' => :'String',
|
80
|
-
:'
|
81
|
-
:'
|
82
|
-
:'hidden' => :'Boolean',
|
76
|
+
:'pulp_labels' => :'Hash<String, String>',
|
77
|
+
:'pulp_last_updated' => :'Time',
|
83
78
|
:'pulp_href' => :'String',
|
79
|
+
:'base_url' => :'String',
|
80
|
+
:'prn' => :'String',
|
81
|
+
:'no_content_change_since' => :'String',
|
84
82
|
:'content_guard' => :'String',
|
85
|
-
:'
|
83
|
+
:'name' => :'String',
|
84
|
+
:'pulp_created' => :'Time',
|
85
|
+
:'hidden' => :'Boolean'
|
86
86
|
}
|
87
87
|
end
|
88
88
|
|
@@ -108,12 +108,10 @@ module PulpcoreClient
|
|
108
108
|
h[k.to_sym] = v
|
109
109
|
}
|
110
110
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
113
|
-
|
114
|
-
|
115
|
-
if attributes.key?(:'pulp_last_updated')
|
116
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
111
|
+
if attributes.key?(:'base_path')
|
112
|
+
self.base_path = attributes[:'base_path']
|
113
|
+
else
|
114
|
+
self.base_path = nil
|
117
115
|
end
|
118
116
|
|
119
117
|
if attributes.key?(:'pulp_labels')
|
@@ -122,42 +120,44 @@ module PulpcoreClient
|
|
122
120
|
end
|
123
121
|
end
|
124
122
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
127
|
-
else
|
128
|
-
self.name = nil
|
123
|
+
if attributes.key?(:'pulp_last_updated')
|
124
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
129
125
|
end
|
130
126
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
self.
|
133
|
-
else
|
134
|
-
self.base_path = nil
|
127
|
+
if attributes.key?(:'pulp_href')
|
128
|
+
self.pulp_href = attributes[:'pulp_href']
|
135
129
|
end
|
136
130
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
self.
|
131
|
+
if attributes.key?(:'base_url')
|
132
|
+
self.base_url = attributes[:'base_url']
|
139
133
|
end
|
140
134
|
|
141
135
|
if attributes.key?(:'prn')
|
142
136
|
self.prn = attributes[:'prn']
|
143
137
|
end
|
144
138
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
147
|
-
else
|
148
|
-
self.hidden = false
|
149
|
-
end
|
150
|
-
|
151
|
-
if attributes.key?(:'pulp_href')
|
152
|
-
self.pulp_href = attributes[:'pulp_href']
|
139
|
+
if attributes.key?(:'no_content_change_since')
|
140
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
153
141
|
end
|
154
142
|
|
155
143
|
if attributes.key?(:'content_guard')
|
156
144
|
self.content_guard = attributes[:'content_guard']
|
157
145
|
end
|
158
146
|
|
159
|
-
if attributes.key?(:'
|
160
|
-
self.
|
147
|
+
if attributes.key?(:'name')
|
148
|
+
self.name = attributes[:'name']
|
149
|
+
else
|
150
|
+
self.name = nil
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'pulp_created')
|
154
|
+
self.pulp_created = attributes[:'pulp_created']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'hidden')
|
158
|
+
self.hidden = attributes[:'hidden']
|
159
|
+
else
|
160
|
+
self.hidden = false
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
@@ -166,14 +166,14 @@ module PulpcoreClient
|
|
166
166
|
def list_invalid_properties
|
167
167
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
168
168
|
invalid_properties = Array.new
|
169
|
-
if @name.nil?
|
170
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
171
|
-
end
|
172
|
-
|
173
169
|
if @base_path.nil?
|
174
170
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
175
171
|
end
|
176
172
|
|
173
|
+
if @name.nil?
|
174
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
175
|
+
end
|
176
|
+
|
177
177
|
invalid_properties
|
178
178
|
end
|
179
179
|
|
@@ -181,8 +181,8 @@ module PulpcoreClient
|
|
181
181
|
# @return true if the model is valid
|
182
182
|
def valid?
|
183
183
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
184
|
-
return false if @name.nil?
|
185
184
|
return false if @base_path.nil?
|
185
|
+
return false if @name.nil?
|
186
186
|
true
|
187
187
|
end
|
188
188
|
|
@@ -191,17 +191,17 @@ module PulpcoreClient
|
|
191
191
|
def ==(o)
|
192
192
|
return true if self.equal?(o)
|
193
193
|
self.class == o.class &&
|
194
|
-
base_url == o.base_url &&
|
195
|
-
pulp_last_updated == o.pulp_last_updated &&
|
196
|
-
pulp_labels == o.pulp_labels &&
|
197
|
-
name == o.name &&
|
198
194
|
base_path == o.base_path &&
|
199
|
-
|
200
|
-
|
201
|
-
hidden == o.hidden &&
|
195
|
+
pulp_labels == o.pulp_labels &&
|
196
|
+
pulp_last_updated == o.pulp_last_updated &&
|
202
197
|
pulp_href == o.pulp_href &&
|
198
|
+
base_url == o.base_url &&
|
199
|
+
prn == o.prn &&
|
200
|
+
no_content_change_since == o.no_content_change_since &&
|
203
201
|
content_guard == o.content_guard &&
|
204
|
-
|
202
|
+
name == o.name &&
|
203
|
+
pulp_created == o.pulp_created &&
|
204
|
+
hidden == o.hidden
|
205
205
|
end
|
206
206
|
|
207
207
|
# @see the `==` method
|
@@ -213,7 +213,7 @@ module PulpcoreClient
|
|
213
213
|
# Calculates hash code according to all attributes.
|
214
214
|
# @return [Integer] Hash code
|
215
215
|
def hash
|
216
|
-
[
|
216
|
+
[base_path, pulp_labels, pulp_last_updated, pulp_href, base_url, prn, no_content_change_since, content_guard, name, pulp_created, hidden].hash
|
217
217
|
end
|
218
218
|
|
219
219
|
# Builds the object from hash
|
@@ -27,67 +27,67 @@ describe PulpcoreClient::ArtifactDistributionResponse do
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test attribute "
|
30
|
+
describe 'test attribute "base_path"' do
|
31
31
|
it 'should work' do
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
describe 'test attribute "
|
36
|
+
describe 'test attribute "pulp_labels"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
describe 'test attribute "
|
42
|
+
describe 'test attribute "pulp_last_updated"' do
|
43
43
|
it 'should work' do
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
describe 'test attribute "
|
48
|
+
describe 'test attribute "pulp_href"' do
|
49
49
|
it 'should work' do
|
50
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe 'test attribute "
|
54
|
+
describe 'test attribute "base_url"' do
|
55
55
|
it 'should work' do
|
56
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
describe 'test attribute "
|
60
|
+
describe 'test attribute "prn"' do
|
61
61
|
it 'should work' do
|
62
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
describe 'test attribute "
|
66
|
+
describe 'test attribute "no_content_change_since"' do
|
67
67
|
it 'should work' do
|
68
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
describe 'test attribute "
|
72
|
+
describe 'test attribute "content_guard"' do
|
73
73
|
it 'should work' do
|
74
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
-
describe 'test attribute "
|
78
|
+
describe 'test attribute "name"' do
|
79
79
|
it 'should work' do
|
80
80
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
-
describe 'test attribute "
|
84
|
+
describe 'test attribute "pulp_created"' do
|
85
85
|
it 'should work' do
|
86
86
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
-
describe 'test attribute "
|
90
|
+
describe 'test attribute "hidden"' do
|
91
91
|
it 'should work' do
|
92
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
93
93
|
end
|