pulpcore_client 3.49.46 → 3.50.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 +5 -5
- data/docs/AccessPoliciesApi.md +1 -1
- data/docs/ArtifactDistributionResponse.md +13 -13
- data/docs/ArtifactsApi.md +1 -1
- data/docs/ContentApi.md +1 -1
- data/docs/ContentguardsApi.md +1 -1
- data/docs/ContentguardsCompositeApi.md +1 -1
- data/docs/ContentguardsContentRedirectApi.md +1 -1
- data/docs/ContentguardsHeaderApi.md +1 -1
- data/docs/ContentguardsRbacApi.md +1 -1
- data/docs/DistributionsApi.md +1 -1
- data/docs/DistributionsArtifactsApi.md +1 -1
- data/docs/DomainsApi.md +1 -1
- data/docs/ExportersFilesystemApi.md +1 -1
- data/docs/ExportersFilesystemExportsApi.md +1 -1
- data/docs/ExportersPulpApi.md +1 -1
- data/docs/ExportersPulpExportsApi.md +1 -1
- data/docs/GroupsApi.md +1 -1
- data/docs/GroupsRolesApi.md +1 -1
- data/docs/GroupsUsersApi.md +1 -1
- data/docs/ImportersPulpApi.md +1 -1
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +1 -1
- data/docs/OrphansApi.md +1 -1
- data/docs/OrphansCleanupApi.md +1 -1
- data/docs/PublicationsApi.md +1 -1
- data/docs/RemotesApi.md +1 -1
- data/docs/RepairApi.md +1 -1
- data/docs/RepositoriesApi.md +1 -1
- data/docs/RepositoriesReclaimSpaceApi.md +1 -1
- data/docs/RepositoryVersionsApi.md +1 -1
- data/docs/RolesApi.md +1 -1
- data/docs/SigningServicesApi.md +1 -1
- data/docs/StatusApi.md +1 -1
- data/docs/TaskGroupsApi.md +1 -1
- data/docs/TaskSchedulesApi.md +1 -1
- data/docs/TasksApi.md +3 -3
- data/docs/UploadsApi.md +1 -1
- data/docs/UpstreamPulpsApi.md +1 -1
- data/docs/UsersApi.md +1 -1
- data/docs/UsersRolesApi.md +1 -1
- data/docs/WorkersApi.md +1 -1
- data/lib/pulpcore_client/api/tasks_api.rb +2 -2
- data/lib/pulpcore_client/configuration.rb +2 -2
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +58 -58
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +9 -9
- metadata +168 -168
|
@@ -15,58 +15,58 @@ require 'date'
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
# A serializer for ArtifactDistribution.
|
|
17
17
|
class ArtifactDistributionResponse
|
|
18
|
-
|
|
19
|
-
attr_accessor :hidden
|
|
18
|
+
attr_accessor :pulp_href
|
|
20
19
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
20
|
+
# An optional content-guard.
|
|
21
|
+
attr_accessor :content_guard
|
|
23
22
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
23
|
+
# The URL for accessing the publication as defined by this distribution.
|
|
24
|
+
attr_accessor :base_url
|
|
25
|
+
|
|
26
|
+
attr_accessor :pulp_labels
|
|
26
27
|
|
|
27
28
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
29
|
attr_accessor :name
|
|
29
30
|
|
|
31
|
+
# Whether this distribution should be shown in the content app.
|
|
32
|
+
attr_accessor :hidden
|
|
33
|
+
|
|
30
34
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
31
35
|
attr_accessor :base_path
|
|
32
36
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
# The URL for accessing the publication as defined by this distribution.
|
|
36
|
-
attr_accessor :base_url
|
|
37
|
-
|
|
38
|
-
# An optional content-guard.
|
|
39
|
-
attr_accessor :content_guard
|
|
37
|
+
# Timestamp of creation.
|
|
38
|
+
attr_accessor :pulp_created
|
|
40
39
|
|
|
41
|
-
|
|
40
|
+
# 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.
|
|
41
|
+
attr_accessor :pulp_last_updated
|
|
42
42
|
|
|
43
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
44
|
def self.attribute_map
|
|
45
45
|
{
|
|
46
|
-
:'
|
|
47
|
-
:'
|
|
48
|
-
:'
|
|
46
|
+
:'pulp_href' => :'pulp_href',
|
|
47
|
+
:'content_guard' => :'content_guard',
|
|
48
|
+
:'base_url' => :'base_url',
|
|
49
|
+
:'pulp_labels' => :'pulp_labels',
|
|
49
50
|
:'name' => :'name',
|
|
51
|
+
:'hidden' => :'hidden',
|
|
50
52
|
:'base_path' => :'base_path',
|
|
51
|
-
:'
|
|
52
|
-
:'
|
|
53
|
-
:'content_guard' => :'content_guard',
|
|
54
|
-
:'pulp_href' => :'pulp_href'
|
|
53
|
+
:'pulp_created' => :'pulp_created',
|
|
54
|
+
:'pulp_last_updated' => :'pulp_last_updated'
|
|
55
55
|
}
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# Attribute type mapping.
|
|
59
59
|
def self.openapi_types
|
|
60
60
|
{
|
|
61
|
-
:'
|
|
62
|
-
:'
|
|
63
|
-
:'
|
|
61
|
+
:'pulp_href' => :'String',
|
|
62
|
+
:'content_guard' => :'String',
|
|
63
|
+
:'base_url' => :'String',
|
|
64
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
64
65
|
:'name' => :'String',
|
|
66
|
+
:'hidden' => :'Boolean',
|
|
65
67
|
:'base_path' => :'String',
|
|
66
|
-
:'
|
|
67
|
-
:'
|
|
68
|
-
:'content_guard' => :'String',
|
|
69
|
-
:'pulp_href' => :'String'
|
|
68
|
+
:'pulp_created' => :'DateTime',
|
|
69
|
+
:'pulp_last_updated' => :'DateTime'
|
|
70
70
|
}
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -92,26 +92,16 @@ module PulpcoreClient
|
|
|
92
92
|
h[k.to_sym] = v
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
if attributes.key?(:'
|
|
96
|
-
self.
|
|
97
|
-
else
|
|
98
|
-
self.hidden = false
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
if attributes.key?(:'pulp_created')
|
|
102
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
if attributes.key?(:'pulp_last_updated')
|
|
106
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
95
|
+
if attributes.key?(:'pulp_href')
|
|
96
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
107
97
|
end
|
|
108
98
|
|
|
109
|
-
if attributes.key?(:'
|
|
110
|
-
self.
|
|
99
|
+
if attributes.key?(:'content_guard')
|
|
100
|
+
self.content_guard = attributes[:'content_guard']
|
|
111
101
|
end
|
|
112
102
|
|
|
113
|
-
if attributes.key?(:'
|
|
114
|
-
self.
|
|
103
|
+
if attributes.key?(:'base_url')
|
|
104
|
+
self.base_url = attributes[:'base_url']
|
|
115
105
|
end
|
|
116
106
|
|
|
117
107
|
if attributes.key?(:'pulp_labels')
|
|
@@ -120,16 +110,26 @@ module PulpcoreClient
|
|
|
120
110
|
end
|
|
121
111
|
end
|
|
122
112
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
113
|
+
if attributes.key?(:'name')
|
|
114
|
+
self.name = attributes[:'name']
|
|
125
115
|
end
|
|
126
116
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
117
|
+
if attributes.key?(:'hidden')
|
|
118
|
+
self.hidden = attributes[:'hidden']
|
|
119
|
+
else
|
|
120
|
+
self.hidden = false
|
|
129
121
|
end
|
|
130
122
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
123
|
+
if attributes.key?(:'base_path')
|
|
124
|
+
self.base_path = attributes[:'base_path']
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if attributes.key?(:'pulp_created')
|
|
128
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'pulp_last_updated')
|
|
132
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
133
133
|
end
|
|
134
134
|
end
|
|
135
135
|
|
|
@@ -161,15 +161,15 @@ module PulpcoreClient
|
|
|
161
161
|
def ==(o)
|
|
162
162
|
return true if self.equal?(o)
|
|
163
163
|
self.class == o.class &&
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
pulp_href == o.pulp_href &&
|
|
165
|
+
content_guard == o.content_guard &&
|
|
166
|
+
base_url == o.base_url &&
|
|
167
|
+
pulp_labels == o.pulp_labels &&
|
|
167
168
|
name == o.name &&
|
|
169
|
+
hidden == o.hidden &&
|
|
168
170
|
base_path == o.base_path &&
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
content_guard == o.content_guard &&
|
|
172
|
-
pulp_href == o.pulp_href
|
|
171
|
+
pulp_created == o.pulp_created &&
|
|
172
|
+
pulp_last_updated == o.pulp_last_updated
|
|
173
173
|
end
|
|
174
174
|
|
|
175
175
|
# @see the `==` method
|
|
@@ -181,7 +181,7 @@ module PulpcoreClient
|
|
|
181
181
|
# Calculates hash code according to all attributes.
|
|
182
182
|
# @return [Integer] Hash code
|
|
183
183
|
def hash
|
|
184
|
-
[
|
|
184
|
+
[pulp_href, content_guard, base_url, pulp_labels, name, hidden, base_path, pulp_created, pulp_last_updated].hash
|
|
185
185
|
end
|
|
186
186
|
|
|
187
187
|
# Builds the object from hash
|
data/spec/api/tasks_api_spec.rb
CHANGED
|
@@ -86,7 +86,7 @@ describe 'TasksApi' do
|
|
|
86
86
|
# @option opts [String] :q
|
|
87
87
|
# @option opts [String] :reserved_resources
|
|
88
88
|
# @option opts [Array<String>] :reserved_resources__in Multiple values may be separated by commas.
|
|
89
|
-
# @option opts [Array<String>] :reserved_resources_record
|
|
89
|
+
# @option opts [Array<String>] :reserved_resources_record Deprecated, will be removed in pulpcore 3.55. Use reserved_resources instead.
|
|
90
90
|
# @option opts [String] :shared_resources
|
|
91
91
|
# @option opts [Array<String>] :shared_resources__in Multiple values may be separated by commas.
|
|
92
92
|
# @option opts [DateTime] :started_at Filter results where started_at matches value
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -18,7 +18,7 @@ describe PulpcoreClient::Configuration do
|
|
|
18
18
|
before(:each) do
|
|
19
19
|
# uncomment below to setup host and base_path
|
|
20
20
|
# require 'URI'
|
|
21
|
-
# uri = URI.parse("http://
|
|
21
|
+
# uri = URI.parse("http://pulp")
|
|
22
22
|
# PulpcoreClient.configure do |c|
|
|
23
23
|
# c.host = uri.host
|
|
24
24
|
# c.base_path = uri.path
|
|
@@ -28,14 +28,14 @@ describe PulpcoreClient::Configuration do
|
|
|
28
28
|
describe '#base_url' do
|
|
29
29
|
it 'should have the default value' do
|
|
30
30
|
# uncomment below to test default value of the base path
|
|
31
|
-
# expect(config.base_url).to eq("http://
|
|
31
|
+
# expect(config.base_url).to eq("http://pulp")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it 'should remove trailing slashes' do
|
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
|
36
36
|
config.base_path = base_path
|
|
37
37
|
# uncomment below to test trailing slashes
|
|
38
|
-
# expect(config.base_url).to eq("http://
|
|
38
|
+
# expect(config.base_url).to eq("http://pulp")
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
|
@@ -32,55 +32,55 @@ 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 "pulp_href"' 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 "content_guard"' 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 "name"' 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 "hidden"' 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 "base_path"' 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 "pulp_created"' 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
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
describe 'test attribute "
|
|
83
|
+
describe 'test attribute "pulp_last_updated"' do
|
|
84
84
|
it 'should work' do
|
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
86
|
end
|