pulp_container_client 2.4.0.dev1615432977 → 2.5.0.dev1616124383
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContentBlobsApi.md +2 -2
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/ContentTagsApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/lib/pulp_container_client/api/content_blobs_api.rb +5 -5
- data/lib/pulp_container_client/api/content_manifests_api.rb +5 -5
- data/lib/pulp_container_client/api/content_tags_api.rb +5 -5
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +0 -40
- data/lib/pulp_container_client/models/container_container_distribution.rb +36 -36
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +45 -45
- data/lib/pulp_container_client/models/content_summary.rb +12 -6
- data/lib/pulp_container_client/models/content_summary_response.rb +12 -6
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/api/content_tags_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- metadata +44 -44
@@ -15,16 +15,6 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
|
-
# The latest RepositoryVersion for this Repository will be served.
|
22
|
-
attr_accessor :repository
|
23
|
-
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
26
|
-
attr_accessor :pulp_href
|
27
|
-
|
28
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
29
19
|
attr_accessor :content_guard
|
30
20
|
|
@@ -34,9 +24,19 @@ module PulpContainerClient
|
|
34
24
|
# RepositoryVersion to be served
|
35
25
|
attr_accessor :repository_version
|
36
26
|
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
28
|
+
attr_accessor :name
|
29
|
+
|
30
|
+
attr_accessor :pulp_href
|
31
|
+
|
37
32
|
# Timestamp of creation.
|
38
33
|
attr_accessor :pulp_created
|
39
34
|
|
35
|
+
# The latest RepositoryVersion for this Repository will be served.
|
36
|
+
attr_accessor :repository
|
37
|
+
|
38
|
+
attr_accessor :pulp_labels
|
39
|
+
|
40
40
|
# The Registry hostame/name/ to use with docker pull command defined by this distribution.
|
41
41
|
attr_accessor :registry_path
|
42
42
|
|
@@ -52,14 +52,14 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'name' => :'name',
|
56
|
-
:'repository' => :'repository',
|
57
|
-
:'pulp_labels' => :'pulp_labels',
|
58
|
-
:'pulp_href' => :'pulp_href',
|
59
55
|
:'content_guard' => :'content_guard',
|
60
56
|
:'base_path' => :'base_path',
|
61
57
|
:'repository_version' => :'repository_version',
|
58
|
+
:'name' => :'name',
|
59
|
+
:'pulp_href' => :'pulp_href',
|
62
60
|
:'pulp_created' => :'pulp_created',
|
61
|
+
:'repository' => :'repository',
|
62
|
+
:'pulp_labels' => :'pulp_labels',
|
63
63
|
:'registry_path' => :'registry_path',
|
64
64
|
:'namespace' => :'namespace',
|
65
65
|
:'private' => :'private',
|
@@ -70,14 +70,14 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'name' => :'String',
|
74
|
-
:'repository' => :'String',
|
75
|
-
:'pulp_labels' => :'Object',
|
76
|
-
:'pulp_href' => :'String',
|
77
73
|
:'content_guard' => :'String',
|
78
74
|
:'base_path' => :'String',
|
79
75
|
:'repository_version' => :'String',
|
76
|
+
:'name' => :'String',
|
77
|
+
:'pulp_href' => :'String',
|
80
78
|
:'pulp_created' => :'DateTime',
|
79
|
+
:'repository' => :'String',
|
80
|
+
:'pulp_labels' => :'Object',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
83
83
|
:'private' => :'Boolean',
|
@@ -88,8 +88,8 @@ module PulpContainerClient
|
|
88
88
|
# List of attributes with nullable: true
|
89
89
|
def self.openapi_nullable
|
90
90
|
Set.new([
|
91
|
-
:'repository',
|
92
91
|
:'repository_version',
|
92
|
+
:'repository',
|
93
93
|
:'description'
|
94
94
|
])
|
95
95
|
end
|
@@ -109,22 +109,6 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'name')
|
113
|
-
self.name = attributes[:'name']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'repository')
|
117
|
-
self.repository = attributes[:'repository']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.key?(:'pulp_labels')
|
121
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'pulp_href')
|
125
|
-
self.pulp_href = attributes[:'pulp_href']
|
126
|
-
end
|
127
|
-
|
128
112
|
if attributes.key?(:'content_guard')
|
129
113
|
self.content_guard = attributes[:'content_guard']
|
130
114
|
end
|
@@ -137,10 +121,26 @@ module PulpContainerClient
|
|
137
121
|
self.repository_version = attributes[:'repository_version']
|
138
122
|
end
|
139
123
|
|
124
|
+
if attributes.key?(:'name')
|
125
|
+
self.name = attributes[:'name']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'pulp_href')
|
129
|
+
self.pulp_href = attributes[:'pulp_href']
|
130
|
+
end
|
131
|
+
|
140
132
|
if attributes.key?(:'pulp_created')
|
141
133
|
self.pulp_created = attributes[:'pulp_created']
|
142
134
|
end
|
143
135
|
|
136
|
+
if attributes.key?(:'repository')
|
137
|
+
self.repository = attributes[:'repository']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'pulp_labels')
|
141
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
142
|
+
end
|
143
|
+
|
144
144
|
if attributes.key?(:'registry_path')
|
145
145
|
self.registry_path = attributes[:'registry_path']
|
146
146
|
end
|
@@ -162,22 +162,22 @@ module PulpContainerClient
|
|
162
162
|
# @return Array for valid properties with the reasons
|
163
163
|
def list_invalid_properties
|
164
164
|
invalid_properties = Array.new
|
165
|
-
if @name.nil?
|
166
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
165
|
if @base_path.nil?
|
170
166
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
171
167
|
end
|
172
168
|
|
169
|
+
if @name.nil?
|
170
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
171
|
+
end
|
172
|
+
|
173
173
|
invalid_properties
|
174
174
|
end
|
175
175
|
|
176
176
|
# Check to see if the all the properties in the model are valid
|
177
177
|
# @return true if the model is valid
|
178
178
|
def valid?
|
179
|
-
return false if @name.nil?
|
180
179
|
return false if @base_path.nil?
|
180
|
+
return false if @name.nil?
|
181
181
|
true
|
182
182
|
end
|
183
183
|
|
@@ -186,14 +186,14 @@ module PulpContainerClient
|
|
186
186
|
def ==(o)
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
|
-
name == o.name &&
|
190
|
-
repository == o.repository &&
|
191
|
-
pulp_labels == o.pulp_labels &&
|
192
|
-
pulp_href == o.pulp_href &&
|
193
189
|
content_guard == o.content_guard &&
|
194
190
|
base_path == o.base_path &&
|
195
191
|
repository_version == o.repository_version &&
|
192
|
+
name == o.name &&
|
193
|
+
pulp_href == o.pulp_href &&
|
196
194
|
pulp_created == o.pulp_created &&
|
195
|
+
repository == o.repository &&
|
196
|
+
pulp_labels == o.pulp_labels &&
|
197
197
|
registry_path == o.registry_path &&
|
198
198
|
namespace == o.namespace &&
|
199
199
|
private == o.private &&
|
@@ -209,7 +209,7 @@ module PulpContainerClient
|
|
209
209
|
# Calculates hash code according to all attributes.
|
210
210
|
# @return [Integer] Hash code
|
211
211
|
def hash
|
212
|
-
[
|
212
|
+
[content_guard, base_path, repository_version, name, pulp_href, pulp_created, repository, pulp_labels, registry_path, namespace, private, description].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -33,9 +33,9 @@ module PulpContainerClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'Object',
|
37
|
-
:'removed' => :'Object',
|
38
|
-
:'present' => :'Object'
|
36
|
+
:'added' => :'Hash<String, Object>',
|
37
|
+
:'removed' => :'Hash<String, Object>',
|
38
|
+
:'present' => :'Hash<String, Object>'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,15 +61,21 @@ module PulpContainerClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
64
|
+
if (value = attributes[:'added']).is_a?(Hash)
|
65
|
+
self.added = value
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
if attributes.key?(:'removed')
|
68
|
-
|
70
|
+
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
+
self.removed = value
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
if attributes.key?(:'present')
|
72
|
-
|
76
|
+
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
+
self.present = value
|
78
|
+
end
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
@@ -33,9 +33,9 @@ module PulpContainerClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'Object',
|
37
|
-
:'removed' => :'Object',
|
38
|
-
:'present' => :'Object'
|
36
|
+
:'added' => :'Hash<String, Object>',
|
37
|
+
:'removed' => :'Hash<String, Object>',
|
38
|
+
:'present' => :'Hash<String, Object>'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,15 +61,21 @@ module PulpContainerClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
64
|
+
if (value = attributes[:'added']).is_a?(Hash)
|
65
|
+
self.added = value
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
if attributes.key?(:'removed')
|
68
|
-
|
70
|
+
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
+
self.removed = value
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
if attributes.key?(:'present')
|
72
|
-
|
76
|
+
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
+
self.present = value
|
78
|
+
end
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
@@ -15,14 +15,6 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
|
-
# The latest RepositoryVersion for this Repository will be served.
|
22
|
-
attr_accessor :repository
|
23
|
-
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
26
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
27
19
|
attr_accessor :content_guard
|
28
20
|
|
@@ -32,6 +24,14 @@ module PulpContainerClient
|
|
32
24
|
# RepositoryVersion to be served
|
33
25
|
attr_accessor :repository_version
|
34
26
|
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
28
|
+
attr_accessor :name
|
29
|
+
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
31
|
+
attr_accessor :repository
|
32
|
+
|
33
|
+
attr_accessor :pulp_labels
|
34
|
+
|
35
35
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
36
36
|
attr_accessor :private
|
37
37
|
|
@@ -41,12 +41,12 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'name' => :'name',
|
45
|
-
:'repository' => :'repository',
|
46
|
-
:'pulp_labels' => :'pulp_labels',
|
47
44
|
:'content_guard' => :'content_guard',
|
48
45
|
:'base_path' => :'base_path',
|
49
46
|
:'repository_version' => :'repository_version',
|
47
|
+
:'name' => :'name',
|
48
|
+
:'repository' => :'repository',
|
49
|
+
:'pulp_labels' => :'pulp_labels',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
52
52
|
}
|
@@ -55,12 +55,12 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'name' => :'String',
|
59
|
-
:'repository' => :'String',
|
60
|
-
:'pulp_labels' => :'Object',
|
61
58
|
:'content_guard' => :'String',
|
62
59
|
:'base_path' => :'String',
|
63
60
|
:'repository_version' => :'String',
|
61
|
+
:'name' => :'String',
|
62
|
+
:'repository' => :'String',
|
63
|
+
:'pulp_labels' => :'Object',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
66
66
|
}
|
@@ -69,8 +69,8 @@ module PulpContainerClient
|
|
69
69
|
# List of attributes with nullable: true
|
70
70
|
def self.openapi_nullable
|
71
71
|
Set.new([
|
72
|
-
:'repository',
|
73
72
|
:'repository_version',
|
73
|
+
:'repository',
|
74
74
|
:'description'
|
75
75
|
])
|
76
76
|
end
|
@@ -90,18 +90,6 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'name')
|
94
|
-
self.name = attributes[:'name']
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'repository')
|
98
|
-
self.repository = attributes[:'repository']
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.key?(:'pulp_labels')
|
102
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
103
|
-
end
|
104
|
-
|
105
93
|
if attributes.key?(:'content_guard')
|
106
94
|
self.content_guard = attributes[:'content_guard']
|
107
95
|
end
|
@@ -114,6 +102,18 @@ module PulpContainerClient
|
|
114
102
|
self.repository_version = attributes[:'repository_version']
|
115
103
|
end
|
116
104
|
|
105
|
+
if attributes.key?(:'name')
|
106
|
+
self.name = attributes[:'name']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'repository')
|
110
|
+
self.repository = attributes[:'repository']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'pulp_labels')
|
114
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
115
|
+
end
|
116
|
+
|
117
117
|
if attributes.key?(:'private')
|
118
118
|
self.private = attributes[:'private']
|
119
119
|
end
|
@@ -141,12 +141,12 @@ module PulpContainerClient
|
|
141
141
|
def ==(o)
|
142
142
|
return true if self.equal?(o)
|
143
143
|
self.class == o.class &&
|
144
|
-
name == o.name &&
|
145
|
-
repository == o.repository &&
|
146
|
-
pulp_labels == o.pulp_labels &&
|
147
144
|
content_guard == o.content_guard &&
|
148
145
|
base_path == o.base_path &&
|
149
146
|
repository_version == o.repository_version &&
|
147
|
+
name == o.name &&
|
148
|
+
repository == o.repository &&
|
149
|
+
pulp_labels == o.pulp_labels &&
|
150
150
|
private == o.private &&
|
151
151
|
description == o.description
|
152
152
|
end
|
@@ -160,7 +160,7 @@ module PulpContainerClient
|
|
160
160
|
# Calculates hash code according to all attributes.
|
161
161
|
# @return [Integer] Hash code
|
162
162
|
def hash
|
163
|
-
[
|
163
|
+
[content_guard, base_path, repository_version, name, repository, pulp_labels, private, description].hash
|
164
164
|
end
|
165
165
|
|
166
166
|
# Builds the object from hash
|
@@ -39,7 +39,7 @@ describe 'ContentBlobsApi' do
|
|
39
39
|
# @option opts [String] :digest Filter results where digest matches value
|
40
40
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
42
|
-
# @option opts [String] :media_type
|
42
|
+
# @option opts [Array<String>] :media_type
|
43
43
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
44
44
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
45
45
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -39,7 +39,7 @@ describe 'ContentManifestsApi' do
|
|
39
39
|
# @option opts [String] :digest Filter results where digest matches value
|
40
40
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
42
|
-
# @option opts [String] :media_type
|
42
|
+
# @option opts [Array<String>] :media_type
|
43
43
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
44
44
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
45
45
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -38,7 +38,7 @@ describe 'ContentTagsApi' do
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [Array<String>] :digest Multiple values may be separated by commas.
|
40
40
|
# @option opts [Integer] :limit Number of results to return per page.
|
41
|
-
# @option opts [String] :media_type
|
41
|
+
# @option opts [Array<String>] :media_type
|
42
42
|
# @option opts [String] :name Filter results where name matches value
|
43
43
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
44
44
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
@@ -32,49 +32,49 @@ describe 'ContainerContainerDistributionResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "content_guard"' 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 "base_path"' 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 "repository_version"' 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 "name"' 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 "pulp_href"' 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 "pulp_created"' 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 "repository"' 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_labels"' 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
|