pulp_container_client 2.3.0.dev01612322499 → 2.4.0.dev01613272873
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 +6 -4
- data/docs/ContainerContainerDistribution.md +13 -9
- data/docs/ContainerContainerDistributionResponse.md +17 -13
- data/docs/PatchedcontainerContainerDistribution.md +13 -9
- data/docs/PulpContainerNamespacesApi.md +16 -5
- data/docs/RepositoriesContainerPushApi.md +114 -2
- data/docs/RepositoriesContainerVersionsApi.md +2 -2
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -7
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +144 -4
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +59 -38
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +74 -53
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +54 -33
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +7 -2
- data/spec/api/repositories_container_push_api_spec.rb +28 -2
- data/spec/api/repositories_container_versions_api_spec.rb +2 -2
- data/spec/models/container_container_distribution_response_spec.rb +19 -7
- data/spec/models/container_container_distribution_spec.rb +17 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +17 -5
- metadata +42 -42
@@ -20,7 +20,7 @@ module PulpContainerClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# List container push repositorys
|
23
|
-
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal
|
23
|
+
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
26
26
|
# @option opts [String] :name name
|
@@ -40,7 +40,7 @@ module PulpContainerClient
|
|
40
40
|
end
|
41
41
|
|
42
42
|
# List container push repositorys
|
43
|
-
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal
|
43
|
+
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
44
44
|
# @param [Hash] opts the optional parameters
|
45
45
|
# @option opts [Integer] :limit Number of results to return per page.
|
46
46
|
# @option opts [String] :name name
|
@@ -109,7 +109,7 @@ module PulpContainerClient
|
|
109
109
|
end
|
110
110
|
|
111
111
|
# Inspect a container push repository
|
112
|
-
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal
|
112
|
+
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
113
113
|
# @param container_container_push_repository_href [String]
|
114
114
|
# @param [Hash] opts the optional parameters
|
115
115
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -121,7 +121,7 @@ module PulpContainerClient
|
|
121
121
|
end
|
122
122
|
|
123
123
|
# Inspect a container push repository
|
124
|
-
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal
|
124
|
+
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
125
125
|
# @param container_container_push_repository_href [String]
|
126
126
|
# @param [Hash] opts the optional parameters
|
127
127
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -175,5 +175,145 @@ module PulpContainerClient
|
|
175
175
|
end
|
176
176
|
return data, status_code, headers
|
177
177
|
end
|
178
|
+
|
179
|
+
# Create a Tag
|
180
|
+
# Trigger an asynchronous task to tag an image in the repository
|
181
|
+
# @param container_container_push_repository_href [String]
|
182
|
+
# @param tag_image [TagImage]
|
183
|
+
# @param [Hash] opts the optional parameters
|
184
|
+
# @return [AsyncOperationResponse]
|
185
|
+
def tag(container_container_push_repository_href, tag_image, opts = {})
|
186
|
+
data, _status_code, _headers = tag_with_http_info(container_container_push_repository_href, tag_image, opts)
|
187
|
+
data
|
188
|
+
end
|
189
|
+
|
190
|
+
# Create a Tag
|
191
|
+
# Trigger an asynchronous task to tag an image in the repository
|
192
|
+
# @param container_container_push_repository_href [String]
|
193
|
+
# @param tag_image [TagImage]
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
196
|
+
def tag_with_http_info(container_container_push_repository_href, tag_image, opts = {})
|
197
|
+
if @api_client.config.debugging
|
198
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.tag ...'
|
199
|
+
end
|
200
|
+
# verify the required parameter 'container_container_push_repository_href' is set
|
201
|
+
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
202
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.tag"
|
203
|
+
end
|
204
|
+
# verify the required parameter 'tag_image' is set
|
205
|
+
if @api_client.config.client_side_validation && tag_image.nil?
|
206
|
+
fail ArgumentError, "Missing the required parameter 'tag_image' when calling RepositoriesContainerPushApi.tag"
|
207
|
+
end
|
208
|
+
# resource path
|
209
|
+
local_var_path = '{container_container_push_repository_href}tag/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
210
|
+
|
211
|
+
# query parameters
|
212
|
+
query_params = opts[:query_params] || {}
|
213
|
+
|
214
|
+
# header parameters
|
215
|
+
header_params = opts[:header_params] || {}
|
216
|
+
# HTTP header 'Accept' (if needed)
|
217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
218
|
+
# HTTP header 'Content-Type'
|
219
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
220
|
+
|
221
|
+
# form parameters
|
222
|
+
form_params = opts[:form_params] || {}
|
223
|
+
|
224
|
+
# http body (model)
|
225
|
+
post_body = opts[:body] || @api_client.object_to_http_body(tag_image)
|
226
|
+
|
227
|
+
# return_type
|
228
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
229
|
+
|
230
|
+
# auth_names
|
231
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
232
|
+
|
233
|
+
new_options = opts.merge(
|
234
|
+
:header_params => header_params,
|
235
|
+
:query_params => query_params,
|
236
|
+
:form_params => form_params,
|
237
|
+
:body => post_body,
|
238
|
+
:auth_names => auth_names,
|
239
|
+
:return_type => return_type
|
240
|
+
)
|
241
|
+
|
242
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
243
|
+
if @api_client.config.debugging
|
244
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushApi#tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
245
|
+
end
|
246
|
+
return data, status_code, headers
|
247
|
+
end
|
248
|
+
|
249
|
+
# Delete a tag
|
250
|
+
# Trigger an asynchronous task to untag an image in the repository
|
251
|
+
# @param container_container_push_repository_href [String]
|
252
|
+
# @param un_tag_image [UnTagImage]
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [AsyncOperationResponse]
|
255
|
+
def untag(container_container_push_repository_href, un_tag_image, opts = {})
|
256
|
+
data, _status_code, _headers = untag_with_http_info(container_container_push_repository_href, un_tag_image, opts)
|
257
|
+
data
|
258
|
+
end
|
259
|
+
|
260
|
+
# Delete a tag
|
261
|
+
# Trigger an asynchronous task to untag an image in the repository
|
262
|
+
# @param container_container_push_repository_href [String]
|
263
|
+
# @param un_tag_image [UnTagImage]
|
264
|
+
# @param [Hash] opts the optional parameters
|
265
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
266
|
+
def untag_with_http_info(container_container_push_repository_href, un_tag_image, opts = {})
|
267
|
+
if @api_client.config.debugging
|
268
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.untag ...'
|
269
|
+
end
|
270
|
+
# verify the required parameter 'container_container_push_repository_href' is set
|
271
|
+
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
272
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.untag"
|
273
|
+
end
|
274
|
+
# verify the required parameter 'un_tag_image' is set
|
275
|
+
if @api_client.config.client_side_validation && un_tag_image.nil?
|
276
|
+
fail ArgumentError, "Missing the required parameter 'un_tag_image' when calling RepositoriesContainerPushApi.untag"
|
277
|
+
end
|
278
|
+
# resource path
|
279
|
+
local_var_path = '{container_container_push_repository_href}untag/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
280
|
+
|
281
|
+
# query parameters
|
282
|
+
query_params = opts[:query_params] || {}
|
283
|
+
|
284
|
+
# header parameters
|
285
|
+
header_params = opts[:header_params] || {}
|
286
|
+
# HTTP header 'Accept' (if needed)
|
287
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
288
|
+
# HTTP header 'Content-Type'
|
289
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
290
|
+
|
291
|
+
# form parameters
|
292
|
+
form_params = opts[:form_params] || {}
|
293
|
+
|
294
|
+
# http body (model)
|
295
|
+
post_body = opts[:body] || @api_client.object_to_http_body(un_tag_image)
|
296
|
+
|
297
|
+
# return_type
|
298
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
299
|
+
|
300
|
+
# auth_names
|
301
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
302
|
+
|
303
|
+
new_options = opts.merge(
|
304
|
+
:header_params => header_params,
|
305
|
+
:query_params => query_params,
|
306
|
+
:form_params => form_params,
|
307
|
+
:body => post_body,
|
308
|
+
:auth_names => auth_names,
|
309
|
+
:return_type => return_type
|
310
|
+
)
|
311
|
+
|
312
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
313
|
+
if @api_client.config.debugging
|
314
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushApi#untag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
315
|
+
end
|
316
|
+
return data, status_code, headers
|
317
|
+
end
|
178
318
|
end
|
179
319
|
end
|
@@ -144,7 +144,7 @@ module PulpContainerClient
|
|
144
144
|
end
|
145
145
|
|
146
146
|
# List repository versions
|
147
|
-
# ContainerPushRepositoryVersion represents a single container push repository version.
|
147
|
+
# ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
148
148
|
# @param container_container_push_repository_href [String]
|
149
149
|
# @param [Hash] opts the optional parameters
|
150
150
|
# @option opts [String] :content content
|
@@ -173,7 +173,7 @@ module PulpContainerClient
|
|
173
173
|
end
|
174
174
|
|
175
175
|
# List repository versions
|
176
|
-
# ContainerPushRepositoryVersion represents a single container push repository version.
|
176
|
+
# ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
177
177
|
# @param container_container_push_repository_href [String]
|
178
178
|
# @param [Hash] opts the optional parameters
|
179
179
|
# @option opts [String] :content content
|
@@ -382,7 +382,7 @@ module PulpContainerClient
|
|
382
382
|
end
|
383
383
|
|
384
384
|
# Inspect a repository version
|
385
|
-
# ContainerPushRepositoryVersion represents a single container push repository version.
|
385
|
+
# ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
386
386
|
# @param container_container_push_repository_version_href [String]
|
387
387
|
# @param [Hash] opts the optional parameters
|
388
388
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -394,7 +394,7 @@ module PulpContainerClient
|
|
394
394
|
end
|
395
395
|
|
396
396
|
# Inspect a repository version
|
397
|
-
# ContainerPushRepositoryVersion represents a single container push repository version.
|
397
|
+
# ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
398
398
|
# @param container_container_push_repository_version_href [String]
|
399
399
|
# @param [Hash] opts the optional parameters
|
400
400
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -15,52 +15,63 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# RepositoryVersion to be served
|
19
|
+
attr_accessor :repository_version
|
20
20
|
|
21
|
-
|
21
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
22
|
+
attr_accessor :content_guard
|
23
|
+
|
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\")
|
25
|
+
attr_accessor :base_path
|
22
26
|
|
23
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
24
28
|
attr_accessor :name
|
25
29
|
|
26
|
-
# The
|
27
|
-
attr_accessor :
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
31
|
+
attr_accessor :repository
|
28
32
|
|
29
|
-
|
30
|
-
attr_accessor :content_guard
|
33
|
+
attr_accessor :pulp_labels
|
31
34
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
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
|
{
|
44
|
+
:'repository_version' => :'repository_version',
|
45
|
+
:'content_guard' => :'content_guard',
|
46
|
+
:'base_path' => :'base_path',
|
47
|
+
:'name' => :'name',
|
38
48
|
:'repository' => :'repository',
|
39
49
|
:'pulp_labels' => :'pulp_labels',
|
40
|
-
:'
|
41
|
-
:'
|
42
|
-
:'content_guard' => :'content_guard',
|
43
|
-
:'repository_version' => :'repository_version'
|
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
|
{
|
58
|
+
:'repository_version' => :'String',
|
59
|
+
:'content_guard' => :'String',
|
60
|
+
:'base_path' => :'String',
|
61
|
+
:'name' => :'String',
|
50
62
|
:'repository' => :'String',
|
51
63
|
:'pulp_labels' => :'Object',
|
52
|
-
:'
|
53
|
-
:'
|
54
|
-
:'content_guard' => :'String',
|
55
|
-
:'repository_version' => :'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([
|
72
|
+
:'repository_version',
|
62
73
|
:'repository',
|
63
|
-
:'
|
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?(:'repository_version')
|
94
|
+
self.repository_version = attributes[:'repository_version']
|
84
95
|
end
|
85
96
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
97
|
+
if attributes.key?(:'content_guard')
|
98
|
+
self.content_guard = attributes[:'content_guard']
|
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?(:'name')
|
91
106
|
self.name = attributes[:'name']
|
92
107
|
end
|
93
108
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
109
|
+
if attributes.key?(:'repository')
|
110
|
+
self.repository = attributes[:'repository']
|
96
111
|
end
|
97
112
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
113
|
+
if attributes.key?(:'pulp_labels')
|
114
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
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
|
|
@@ -108,22 +127,22 @@ module PulpContainerClient
|
|
108
127
|
# @return Array for valid properties with the reasons
|
109
128
|
def list_invalid_properties
|
110
129
|
invalid_properties = Array.new
|
111
|
-
if @name.nil?
|
112
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
113
|
-
end
|
114
|
-
|
115
130
|
if @base_path.nil?
|
116
131
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
117
132
|
end
|
118
133
|
|
134
|
+
if @name.nil?
|
135
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
136
|
+
end
|
137
|
+
|
119
138
|
invalid_properties
|
120
139
|
end
|
121
140
|
|
122
141
|
# Check to see if the all the properties in the model are valid
|
123
142
|
# @return true if the model is valid
|
124
143
|
def valid?
|
125
|
-
return false if @name.nil?
|
126
144
|
return false if @base_path.nil?
|
145
|
+
return false if @name.nil?
|
127
146
|
true
|
128
147
|
end
|
129
148
|
|
@@ -132,12 +151,14 @@ module PulpContainerClient
|
|
132
151
|
def ==(o)
|
133
152
|
return true if self.equal?(o)
|
134
153
|
self.class == o.class &&
|
154
|
+
repository_version == o.repository_version &&
|
155
|
+
content_guard == o.content_guard &&
|
156
|
+
base_path == o.base_path &&
|
157
|
+
name == o.name &&
|
135
158
|
repository == o.repository &&
|
136
159
|
pulp_labels == o.pulp_labels &&
|
137
|
-
|
138
|
-
|
139
|
-
content_guard == o.content_guard &&
|
140
|
-
repository_version == o.repository_version
|
160
|
+
private == o.private &&
|
161
|
+
description == o.description
|
141
162
|
end
|
142
163
|
|
143
164
|
# @see the `==` method
|
@@ -149,7 +170,7 @@ module PulpContainerClient
|
|
149
170
|
# Calculates hash code according to all attributes.
|
150
171
|
# @return [Integer] Hash code
|
151
172
|
def hash
|
152
|
-
[
|
173
|
+
[repository_version, content_guard, base_path, name, repository, pulp_labels, private, description].hash
|
153
174
|
end
|
154
175
|
|
155
176
|
# Builds the object from hash
|
@@ -15,27 +15,27 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# RepositoryVersion to be served
|
19
|
+
attr_accessor :repository_version
|
20
20
|
|
21
|
-
|
21
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
22
|
+
attr_accessor :content_guard
|
22
23
|
|
23
|
-
|
24
|
-
attr_accessor :name
|
24
|
+
attr_accessor :pulp_href
|
25
25
|
|
26
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
27
|
attr_accessor :base_path
|
28
28
|
|
29
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
30
|
-
attr_accessor :content_guard
|
31
|
-
|
32
29
|
# Timestamp of creation.
|
33
30
|
attr_accessor :pulp_created
|
34
31
|
|
35
|
-
#
|
36
|
-
attr_accessor :
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
+
attr_accessor :name
|
37
34
|
|
38
|
-
|
35
|
+
# The latest RepositoryVersion for this Repository will be served.
|
36
|
+
attr_accessor :repository
|
37
|
+
|
38
|
+
attr_accessor :pulp_labels
|
39
39
|
|
40
40
|
# The Registry hostame/name/ to use with docker pull command defined by this distribution.
|
41
41
|
attr_accessor :registry_path
|
@@ -43,43 +43,54 @@ module PulpContainerClient
|
|
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
|
-
:'repository' => :'repository',
|
50
|
-
:'pulp_labels' => :'pulp_labels',
|
51
|
-
:'name' => :'name',
|
52
|
-
:'base_path' => :'base_path',
|
53
|
-
:'content_guard' => :'content_guard',
|
54
|
-
:'pulp_created' => :'pulp_created',
|
55
55
|
:'repository_version' => :'repository_version',
|
56
|
+
:'content_guard' => :'content_guard',
|
56
57
|
:'pulp_href' => :'pulp_href',
|
58
|
+
:'base_path' => :'base_path',
|
59
|
+
:'pulp_created' => :'pulp_created',
|
60
|
+
:'name' => :'name',
|
61
|
+
:'repository' => :'repository',
|
62
|
+
:'pulp_labels' => :'pulp_labels',
|
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
|
-
:'repository' => :'String',
|
66
|
-
:'pulp_labels' => :'Object',
|
67
|
-
:'name' => :'String',
|
68
|
-
:'base_path' => :'String',
|
69
|
-
:'content_guard' => :'String',
|
70
|
-
:'pulp_created' => :'DateTime',
|
71
73
|
:'repository_version' => :'String',
|
74
|
+
:'content_guard' => :'String',
|
72
75
|
:'pulp_href' => :'String',
|
76
|
+
:'base_path' => :'String',
|
77
|
+
:'pulp_created' => :'DateTime',
|
78
|
+
:'name' => :'String',
|
79
|
+
:'repository' => :'String',
|
80
|
+
:'pulp_labels' => :'Object',
|
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,36 +109,36 @@ module PulpContainerClient
|
|
98
109
|
h[k.to_sym] = v
|
99
110
|
}
|
100
111
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
112
|
+
if attributes.key?(:'repository_version')
|
113
|
+
self.repository_version = attributes[:'repository_version']
|
103
114
|
end
|
104
115
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
116
|
+
if attributes.key?(:'content_guard')
|
117
|
+
self.content_guard = attributes[:'content_guard']
|
107
118
|
end
|
108
119
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
120
|
+
if attributes.key?(:'pulp_href')
|
121
|
+
self.pulp_href = attributes[:'pulp_href']
|
111
122
|
end
|
112
123
|
|
113
124
|
if attributes.key?(:'base_path')
|
114
125
|
self.base_path = attributes[:'base_path']
|
115
126
|
end
|
116
127
|
|
117
|
-
if attributes.key?(:'content_guard')
|
118
|
-
self.content_guard = attributes[:'content_guard']
|
119
|
-
end
|
120
|
-
|
121
128
|
if attributes.key?(:'pulp_created')
|
122
129
|
self.pulp_created = attributes[:'pulp_created']
|
123
130
|
end
|
124
131
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
132
|
+
if attributes.key?(:'name')
|
133
|
+
self.name = attributes[:'name']
|
127
134
|
end
|
128
135
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
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']
|
131
142
|
end
|
132
143
|
|
133
144
|
if attributes.key?(:'registry_path')
|
@@ -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 @name.nil?
|
147
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
148
|
-
end
|
149
|
-
|
150
165
|
if @base_path.nil?
|
151
166
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
152
167
|
end
|
153
168
|
|
169
|
+
if @name.nil?
|
170
|
+
invalid_properties.push('invalid value for "name", name 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 @name.nil?
|
161
179
|
return false if @base_path.nil?
|
180
|
+
return false if @name.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
|
-
repository == o.repository &&
|
171
|
-
pulp_labels == o.pulp_labels &&
|
172
|
-
name == o.name &&
|
173
|
-
base_path == o.base_path &&
|
174
|
-
content_guard == o.content_guard &&
|
175
|
-
pulp_created == o.pulp_created &&
|
176
189
|
repository_version == o.repository_version &&
|
190
|
+
content_guard == o.content_guard &&
|
177
191
|
pulp_href == o.pulp_href &&
|
192
|
+
base_path == o.base_path &&
|
193
|
+
pulp_created == o.pulp_created &&
|
194
|
+
name == o.name &&
|
195
|
+
repository == o.repository &&
|
196
|
+
pulp_labels == o.pulp_labels &&
|
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
|
+
[repository_version, content_guard, pulp_href, base_path, pulp_created, name, repository, pulp_labels, registry_path, namespace, private, description].hash
|
192
213
|
end
|
193
214
|
|
194
215
|
# Builds the object from hash
|