pulp_container_client 2.3.0.dev01612063510 → 2.4.0.dev01613013684
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.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ContainerContainerDistribution.md +12 -8
- data/docs/ContainerContainerDistributionResponse.md +16 -12
- data/docs/DistributionsContainerApi.md +2 -0
- data/docs/PatchedcontainerContainerDistribution.md +12 -8
- data/docs/PulpContainerNamespacesApi.md +16 -5
- data/docs/RemotesContainerApi.md +2 -0
- data/docs/RepositoriesContainerApi.md +2 -0
- data/docs/RepositoriesContainerPushApi.md +116 -2
- data/docs/RepositoriesContainerVersionsApi.md +2 -2
- data/lib/pulp_container_client/api/distributions_container_api.rb +3 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -7
- data/lib/pulp_container_client/api/remotes_container_api.rb +3 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +3 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +147 -4
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +58 -37
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +75 -54
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +53 -32
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/distributions_container_api_spec.rb +1 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +7 -2
- data/spec/api/remotes_container_api_spec.rb +1 -0
- data/spec/api/repositories_container_api_spec.rb +1 -0
- data/spec/api/repositories_container_push_api_spec.rb +29 -2
- data/spec/api/repositories_container_versions_api_spec.rb +2 -2
- data/spec/models/container_container_distribution_response_spec.rb +20 -8
- data/spec/models/container_container_distribution_spec.rb +17 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +17 -5
- metadata +2 -2
@@ -15,71 +15,82 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
+
attr_accessor :content_guard
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
21
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
+
attr_accessor :name
|
23
23
|
|
24
|
-
|
25
|
-
|
24
|
+
attr_accessor :pulp_href
|
25
|
+
|
26
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
27
|
+
attr_accessor :base_path
|
26
28
|
|
27
29
|
# RepositoryVersion to be served
|
28
30
|
attr_accessor :repository_version
|
29
31
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
32
|
-
|
33
|
-
attr_accessor :pulp_href
|
34
|
-
|
35
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
36
|
-
attr_accessor :name
|
32
|
+
# Timestamp of creation.
|
33
|
+
attr_accessor :pulp_created
|
37
34
|
|
38
35
|
attr_accessor :pulp_labels
|
39
36
|
|
37
|
+
# The latest RepositoryVersion for this Repository will be served.
|
38
|
+
attr_accessor :repository
|
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
|
|
43
43
|
# Namespace this distribution belongs to.
|
44
44
|
attr_accessor :namespace
|
45
45
|
|
46
|
+
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
47
|
+
attr_accessor :private
|
48
|
+
|
49
|
+
# An optional description.
|
50
|
+
attr_accessor :description
|
51
|
+
|
46
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
53
|
def self.attribute_map
|
48
54
|
{
|
49
|
-
:'base_path' => :'base_path',
|
50
|
-
:'repository' => :'repository',
|
51
|
-
:'pulp_created' => :'pulp_created',
|
52
|
-
:'repository_version' => :'repository_version',
|
53
55
|
:'content_guard' => :'content_guard',
|
54
|
-
:'pulp_href' => :'pulp_href',
|
55
56
|
:'name' => :'name',
|
57
|
+
:'pulp_href' => :'pulp_href',
|
58
|
+
:'base_path' => :'base_path',
|
59
|
+
:'repository_version' => :'repository_version',
|
60
|
+
:'pulp_created' => :'pulp_created',
|
56
61
|
:'pulp_labels' => :'pulp_labels',
|
62
|
+
:'repository' => :'repository',
|
57
63
|
:'registry_path' => :'registry_path',
|
58
|
-
:'namespace' => :'namespace'
|
64
|
+
:'namespace' => :'namespace',
|
65
|
+
:'private' => :'private',
|
66
|
+
:'description' => :'description'
|
59
67
|
}
|
60
68
|
end
|
61
69
|
|
62
70
|
# Attribute type mapping.
|
63
71
|
def self.openapi_types
|
64
72
|
{
|
65
|
-
:'base_path' => :'String',
|
66
|
-
:'repository' => :'String',
|
67
|
-
:'pulp_created' => :'DateTime',
|
68
|
-
:'repository_version' => :'String',
|
69
73
|
:'content_guard' => :'String',
|
70
|
-
:'pulp_href' => :'String',
|
71
74
|
:'name' => :'String',
|
75
|
+
:'pulp_href' => :'String',
|
76
|
+
:'base_path' => :'String',
|
77
|
+
:'repository_version' => :'String',
|
78
|
+
:'pulp_created' => :'DateTime',
|
72
79
|
:'pulp_labels' => :'Object',
|
80
|
+
:'repository' => :'String',
|
73
81
|
:'registry_path' => :'String',
|
74
|
-
:'namespace' => :'String'
|
82
|
+
:'namespace' => :'String',
|
83
|
+
:'private' => :'Boolean',
|
84
|
+
:'description' => :'String'
|
75
85
|
}
|
76
86
|
end
|
77
87
|
|
78
88
|
# List of attributes with nullable: true
|
79
89
|
def self.openapi_nullable
|
80
90
|
Set.new([
|
81
|
-
:'repository',
|
82
91
|
:'repository_version',
|
92
|
+
:'repository',
|
93
|
+
:'description'
|
83
94
|
])
|
84
95
|
end
|
85
96
|
|
@@ -98,38 +109,38 @@ module PulpContainerClient
|
|
98
109
|
h[k.to_sym] = v
|
99
110
|
}
|
100
111
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
103
|
-
end
|
104
|
-
|
105
|
-
if attributes.key?(:'repository')
|
106
|
-
self.repository = attributes[:'repository']
|
112
|
+
if attributes.key?(:'content_guard')
|
113
|
+
self.content_guard = attributes[:'content_guard']
|
107
114
|
end
|
108
115
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
116
|
+
if attributes.key?(:'name')
|
117
|
+
self.name = attributes[:'name']
|
111
118
|
end
|
112
119
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
120
|
+
if attributes.key?(:'pulp_href')
|
121
|
+
self.pulp_href = attributes[:'pulp_href']
|
115
122
|
end
|
116
123
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
124
|
+
if attributes.key?(:'base_path')
|
125
|
+
self.base_path = attributes[:'base_path']
|
119
126
|
end
|
120
127
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
128
|
+
if attributes.key?(:'repository_version')
|
129
|
+
self.repository_version = attributes[:'repository_version']
|
123
130
|
end
|
124
131
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
132
|
+
if attributes.key?(:'pulp_created')
|
133
|
+
self.pulp_created = attributes[:'pulp_created']
|
127
134
|
end
|
128
135
|
|
129
136
|
if attributes.key?(:'pulp_labels')
|
130
137
|
self.pulp_labels = attributes[:'pulp_labels']
|
131
138
|
end
|
132
139
|
|
140
|
+
if attributes.key?(:'repository')
|
141
|
+
self.repository = attributes[:'repository']
|
142
|
+
end
|
143
|
+
|
133
144
|
if attributes.key?(:'registry_path')
|
134
145
|
self.registry_path = attributes[:'registry_path']
|
135
146
|
end
|
@@ -137,28 +148,36 @@ module PulpContainerClient
|
|
137
148
|
if attributes.key?(:'namespace')
|
138
149
|
self.namespace = attributes[:'namespace']
|
139
150
|
end
|
151
|
+
|
152
|
+
if attributes.key?(:'private')
|
153
|
+
self.private = attributes[:'private']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'description')
|
157
|
+
self.description = attributes[:'description']
|
158
|
+
end
|
140
159
|
end
|
141
160
|
|
142
161
|
# Show invalid properties with the reasons. Usually used together with valid?
|
143
162
|
# @return Array for valid properties with the reasons
|
144
163
|
def list_invalid_properties
|
145
164
|
invalid_properties = Array.new
|
146
|
-
if @base_path.nil?
|
147
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
148
|
-
end
|
149
|
-
|
150
165
|
if @name.nil?
|
151
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
152
167
|
end
|
153
168
|
|
169
|
+
if @base_path.nil?
|
170
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
171
|
+
end
|
172
|
+
|
154
173
|
invalid_properties
|
155
174
|
end
|
156
175
|
|
157
176
|
# Check to see if the all the properties in the model are valid
|
158
177
|
# @return true if the model is valid
|
159
178
|
def valid?
|
160
|
-
return false if @base_path.nil?
|
161
179
|
return false if @name.nil?
|
180
|
+
return false if @base_path.nil?
|
162
181
|
true
|
163
182
|
end
|
164
183
|
|
@@ -167,16 +186,18 @@ module PulpContainerClient
|
|
167
186
|
def ==(o)
|
168
187
|
return true if self.equal?(o)
|
169
188
|
self.class == o.class &&
|
170
|
-
base_path == o.base_path &&
|
171
|
-
repository == o.repository &&
|
172
|
-
pulp_created == o.pulp_created &&
|
173
|
-
repository_version == o.repository_version &&
|
174
189
|
content_guard == o.content_guard &&
|
175
|
-
pulp_href == o.pulp_href &&
|
176
190
|
name == o.name &&
|
191
|
+
pulp_href == o.pulp_href &&
|
192
|
+
base_path == o.base_path &&
|
193
|
+
repository_version == o.repository_version &&
|
194
|
+
pulp_created == o.pulp_created &&
|
177
195
|
pulp_labels == o.pulp_labels &&
|
196
|
+
repository == o.repository &&
|
178
197
|
registry_path == o.registry_path &&
|
179
|
-
namespace == o.namespace
|
198
|
+
namespace == o.namespace &&
|
199
|
+
private == o.private &&
|
200
|
+
description == o.description
|
180
201
|
end
|
181
202
|
|
182
203
|
# @see the `==` method
|
@@ -188,7 +209,7 @@ module PulpContainerClient
|
|
188
209
|
# Calculates hash code according to all attributes.
|
189
210
|
# @return [Integer] Hash code
|
190
211
|
def hash
|
191
|
-
[
|
212
|
+
[content_guard, name, pulp_href, base_path, repository_version, pulp_created, pulp_labels, repository, registry_path, namespace, private, description].hash
|
192
213
|
end
|
193
214
|
|
194
215
|
# Builds the object from hash
|
@@ -15,52 +15,63 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
+
attr_accessor :content_guard
|
20
|
+
|
21
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
+
attr_accessor :name
|
23
|
+
|
18
24
|
# 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
25
|
attr_accessor :base_path
|
20
26
|
|
21
|
-
# The latest RepositoryVersion for this Repository will be served.
|
22
|
-
attr_accessor :repository
|
23
|
-
|
24
27
|
# RepositoryVersion to be served
|
25
28
|
attr_accessor :repository_version
|
26
29
|
|
27
|
-
|
28
|
-
attr_accessor :content_guard
|
30
|
+
attr_accessor :pulp_labels
|
29
31
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
33
|
+
attr_accessor :repository
|
32
34
|
|
33
|
-
|
35
|
+
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
36
|
+
attr_accessor :private
|
37
|
+
|
38
|
+
# An optional description.
|
39
|
+
attr_accessor :description
|
34
40
|
|
35
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
42
|
def self.attribute_map
|
37
43
|
{
|
38
|
-
:'base_path' => :'base_path',
|
39
|
-
:'repository' => :'repository',
|
40
|
-
:'repository_version' => :'repository_version',
|
41
44
|
:'content_guard' => :'content_guard',
|
42
45
|
:'name' => :'name',
|
43
|
-
:'
|
46
|
+
:'base_path' => :'base_path',
|
47
|
+
:'repository_version' => :'repository_version',
|
48
|
+
:'pulp_labels' => :'pulp_labels',
|
49
|
+
:'repository' => :'repository',
|
50
|
+
:'private' => :'private',
|
51
|
+
:'description' => :'description'
|
44
52
|
}
|
45
53
|
end
|
46
54
|
|
47
55
|
# Attribute type mapping.
|
48
56
|
def self.openapi_types
|
49
57
|
{
|
50
|
-
:'base_path' => :'String',
|
51
|
-
:'repository' => :'String',
|
52
|
-
:'repository_version' => :'String',
|
53
58
|
:'content_guard' => :'String',
|
54
59
|
:'name' => :'String',
|
55
|
-
:'
|
60
|
+
:'base_path' => :'String',
|
61
|
+
:'repository_version' => :'String',
|
62
|
+
:'pulp_labels' => :'Object',
|
63
|
+
:'repository' => :'String',
|
64
|
+
:'private' => :'Boolean',
|
65
|
+
:'description' => :'String'
|
56
66
|
}
|
57
67
|
end
|
58
68
|
|
59
69
|
# List of attributes with nullable: true
|
60
70
|
def self.openapi_nullable
|
61
71
|
Set.new([
|
62
|
-
:'repository',
|
63
72
|
:'repository_version',
|
73
|
+
:'repository',
|
74
|
+
:'description'
|
64
75
|
])
|
65
76
|
end
|
66
77
|
|
@@ -79,28 +90,36 @@ module PulpContainerClient
|
|
79
90
|
h[k.to_sym] = v
|
80
91
|
}
|
81
92
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
93
|
+
if attributes.key?(:'content_guard')
|
94
|
+
self.content_guard = attributes[:'content_guard']
|
84
95
|
end
|
85
96
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
97
|
+
if attributes.key?(:'name')
|
98
|
+
self.name = attributes[:'name']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'base_path')
|
102
|
+
self.base_path = attributes[:'base_path']
|
88
103
|
end
|
89
104
|
|
90
105
|
if attributes.key?(:'repository_version')
|
91
106
|
self.repository_version = attributes[:'repository_version']
|
92
107
|
end
|
93
108
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
109
|
+
if attributes.key?(:'pulp_labels')
|
110
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
96
111
|
end
|
97
112
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
113
|
+
if attributes.key?(:'repository')
|
114
|
+
self.repository = attributes[:'repository']
|
100
115
|
end
|
101
116
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
117
|
+
if attributes.key?(:'private')
|
118
|
+
self.private = attributes[:'private']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.key?(:'description')
|
122
|
+
self.description = attributes[:'description']
|
104
123
|
end
|
105
124
|
end
|
106
125
|
|
@@ -122,12 +141,14 @@ module PulpContainerClient
|
|
122
141
|
def ==(o)
|
123
142
|
return true if self.equal?(o)
|
124
143
|
self.class == o.class &&
|
125
|
-
base_path == o.base_path &&
|
126
|
-
repository == o.repository &&
|
127
|
-
repository_version == o.repository_version &&
|
128
144
|
content_guard == o.content_guard &&
|
129
145
|
name == o.name &&
|
130
|
-
|
146
|
+
base_path == o.base_path &&
|
147
|
+
repository_version == o.repository_version &&
|
148
|
+
pulp_labels == o.pulp_labels &&
|
149
|
+
repository == o.repository &&
|
150
|
+
private == o.private &&
|
151
|
+
description == o.description
|
131
152
|
end
|
132
153
|
|
133
154
|
# @see the `==` method
|
@@ -139,7 +160,7 @@ module PulpContainerClient
|
|
139
160
|
# Calculates hash code according to all attributes.
|
140
161
|
# @return [Integer] Hash code
|
141
162
|
def hash
|
142
|
-
[
|
163
|
+
[content_guard, name, base_path, repository_version, pulp_labels, repository, private, description].hash
|
143
164
|
end
|
144
165
|
|
145
166
|
# Builds the object from hash
|
@@ -73,6 +73,7 @@ describe 'DistributionsContainerApi' do
|
|
73
73
|
# @option opts [String] :namespace__name namespace__name
|
74
74
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
75
75
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
76
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
76
77
|
# @option opts [String] :fields A list of fields to include in the response.
|
77
78
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
78
79
|
# @return [PaginatedcontainerContainerDistributionResponseList]
|
@@ -46,10 +46,10 @@ describe 'PulpContainerNamespacesApi' do
|
|
46
46
|
|
47
47
|
# unit tests for delete
|
48
48
|
# Delete a container namespace
|
49
|
-
#
|
49
|
+
# Trigger an asynchronous delete task
|
50
50
|
# @param container_container_namespace_href
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [
|
52
|
+
# @return [AsyncOperationResponse]
|
53
53
|
describe 'delete test' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -61,6 +61,11 @@ describe 'PulpContainerNamespacesApi' do
|
|
61
61
|
# ViewSet for ContainerNamespaces.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
+
# @option opts [String] :name name
|
65
|
+
# @option opts [String] :name__contains name__contains
|
66
|
+
# @option opts [String] :name__icontains name__icontains
|
67
|
+
# @option opts [String] :name__in name__in
|
68
|
+
# @option opts [String] :name__startswith name__startswith
|
64
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
65
70
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
66
71
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -68,6 +68,7 @@ describe 'RemotesContainerApi' do
|
|
68
68
|
# @option opts [String] :name__startswith name__startswith
|
69
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
70
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
71
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
71
72
|
# @option opts [String] :pulp_last_updated pulp_last_updated
|
72
73
|
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
73
74
|
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
@@ -123,6 +123,7 @@ describe 'RepositoriesContainerApi' do
|
|
123
123
|
# @option opts [String] :name__startswith name__startswith
|
124
124
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
125
125
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
126
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
126
127
|
# @option opts [String] :fields A list of fields to include in the response.
|
127
128
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
128
129
|
# @return [PaginatedcontainerContainerRepositoryResponseList]
|