pulp_container_client 2.3.0.dev01611461257 → 2.3.0.dev01611977129
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 +10 -10
- data/docs/ContainerContainerDistribution.md +8 -6
- data/docs/ContainerContainerDistributionResponse.md +11 -9
- data/docs/ContainerContainerPushRepositoryResponse.md +2 -0
- data/docs/ContainerContainerRemote.md +4 -0
- data/docs/ContainerContainerRemoteResponse.md +4 -0
- data/docs/ContainerContainerRepository.md +3 -1
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/{ContentguardsContentRedirectApi.md → ContentGuardsContentRedirectApi.md} +19 -19
- data/docs/PatchedcontainerContainerDistribution.md +8 -6
- data/docs/PatchedcontainerContainerRemote.md +4 -0
- data/docs/PatchedcontainerContainerRepository.md +3 -1
- data/lib/pulp_container_client.rb +1 -1
- data/lib/pulp_container_client/api/{contentguards_content_redirect_api.rb → content_guards_content_redirect_api.rb} +22 -22
- data/lib/pulp_container_client/models/container_container_distribution.rb +39 -30
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +49 -40
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +10 -1
- data/lib/pulp_container_client/models/container_container_remote.rb +21 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +21 -1
- data/lib/pulp_container_client/models/container_container_repository.rb +10 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +10 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +34 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +21 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +10 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/{contentguards_content_redirect_api_spec.rb → content_guards_content_redirect_api_spec.rb} +6 -6
- data/spec/models/container_container_distribution_response_spec.rb +12 -6
- data/spec/models/container_container_distribution_spec.rb +10 -4
- data/spec/models/container_container_push_repository_response_spec.rb +6 -0
- data/spec/models/container_container_remote_response_spec.rb +12 -0
- data/spec/models/container_container_remote_spec.rb +12 -0
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_container_repository_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +10 -4
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
- metadata +43 -43
@@ -61,9 +61,9 @@ require 'pulp_container_client/models/un_tag_image'
|
|
61
61
|
|
62
62
|
# APIs
|
63
63
|
require 'pulp_container_client/api/content_blobs_api'
|
64
|
+
require 'pulp_container_client/api/content_guards_content_redirect_api'
|
64
65
|
require 'pulp_container_client/api/content_manifests_api'
|
65
66
|
require 'pulp_container_client/api/content_tags_api'
|
66
|
-
require 'pulp_container_client/api/contentguards_content_redirect_api'
|
67
67
|
require 'pulp_container_client/api/distributions_container_api'
|
68
68
|
require 'pulp_container_client/api/pulp_container_namespaces_api'
|
69
69
|
require 'pulp_container_client/api/remotes_container_api'
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpContainerClient
|
16
|
-
class
|
16
|
+
class ContentGuardsContentRedirectApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -36,14 +36,14 @@ module PulpContainerClient
|
|
36
36
|
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
37
37
|
def create_with_http_info(container_content_redirect_content_guard, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.create ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'container_content_redirect_content_guard' is set
|
42
42
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling ContentGuardsContentRedirectApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/
|
46
|
+
local_var_path = '/pulp/api/v3/content_guards/container/content_redirect/'
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -78,7 +78,7 @@ module PulpContainerClient
|
|
78
78
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
80
|
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called:
|
81
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
@@ -100,11 +100,11 @@ module PulpContainerClient
|
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
101
|
def delete_with_http_info(container_content_redirect_content_guard_href, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug 'Calling API:
|
103
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.delete ...'
|
104
104
|
end
|
105
105
|
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
106
106
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling
|
107
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentGuardsContentRedirectApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
110
|
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
@@ -138,7 +138,7 @@ module PulpContainerClient
|
|
138
138
|
|
139
139
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
140
140
|
if @api_client.config.debugging
|
141
|
-
@api_client.config.logger.debug "API called:
|
141
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
142
|
end
|
143
143
|
return data, status_code, headers
|
144
144
|
end
|
@@ -178,10 +178,10 @@ module PulpContainerClient
|
|
178
178
|
# @return [Array<(PaginatedcontainerContentRedirectContentGuardResponseList, Integer, Hash)>] PaginatedcontainerContentRedirectContentGuardResponseList data, response status code and response headers
|
179
179
|
def list_with_http_info(opts = {})
|
180
180
|
if @api_client.config.debugging
|
181
|
-
@api_client.config.logger.debug 'Calling API:
|
181
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.list ...'
|
182
182
|
end
|
183
183
|
# resource path
|
184
|
-
local_var_path = '/pulp/api/v3/
|
184
|
+
local_var_path = '/pulp/api/v3/content_guards/container/content_redirect/'
|
185
185
|
|
186
186
|
# query parameters
|
187
187
|
query_params = opts[:query_params] || {}
|
@@ -224,7 +224,7 @@ module PulpContainerClient
|
|
224
224
|
|
225
225
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
226
226
|
if @api_client.config.debugging
|
227
|
-
@api_client.config.logger.debug "API called:
|
227
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
228
228
|
end
|
229
229
|
return data, status_code, headers
|
230
230
|
end
|
@@ -248,15 +248,15 @@ module PulpContainerClient
|
|
248
248
|
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
249
249
|
def partial_update_with_http_info(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts = {})
|
250
250
|
if @api_client.config.debugging
|
251
|
-
@api_client.config.logger.debug 'Calling API:
|
251
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.partial_update ...'
|
252
252
|
end
|
253
253
|
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
254
254
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
255
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling
|
255
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentGuardsContentRedirectApi.partial_update"
|
256
256
|
end
|
257
257
|
# verify the required parameter 'patchedcontainer_content_redirect_content_guard' is set
|
258
258
|
if @api_client.config.client_side_validation && patchedcontainer_content_redirect_content_guard.nil?
|
259
|
-
fail ArgumentError, "Missing the required parameter 'patchedcontainer_content_redirect_content_guard' when calling
|
259
|
+
fail ArgumentError, "Missing the required parameter 'patchedcontainer_content_redirect_content_guard' when calling ContentGuardsContentRedirectApi.partial_update"
|
260
260
|
end
|
261
261
|
# resource path
|
262
262
|
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
@@ -294,7 +294,7 @@ module PulpContainerClient
|
|
294
294
|
|
295
295
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
296
296
|
if @api_client.config.debugging
|
297
|
-
@api_client.config.logger.debug "API called:
|
297
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
298
298
|
end
|
299
299
|
return data, status_code, headers
|
300
300
|
end
|
@@ -320,11 +320,11 @@ module PulpContainerClient
|
|
320
320
|
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
321
321
|
def read_with_http_info(container_content_redirect_content_guard_href, opts = {})
|
322
322
|
if @api_client.config.debugging
|
323
|
-
@api_client.config.logger.debug 'Calling API:
|
323
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.read ...'
|
324
324
|
end
|
325
325
|
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
326
326
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
327
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling
|
327
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentGuardsContentRedirectApi.read"
|
328
328
|
end
|
329
329
|
# resource path
|
330
330
|
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
@@ -362,7 +362,7 @@ module PulpContainerClient
|
|
362
362
|
|
363
363
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
364
364
|
if @api_client.config.debugging
|
365
|
-
@api_client.config.logger.debug "API called:
|
365
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
366
366
|
end
|
367
367
|
return data, status_code, headers
|
368
368
|
end
|
@@ -386,15 +386,15 @@ module PulpContainerClient
|
|
386
386
|
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
387
387
|
def update_with_http_info(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts = {})
|
388
388
|
if @api_client.config.debugging
|
389
|
-
@api_client.config.logger.debug 'Calling API:
|
389
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.update ...'
|
390
390
|
end
|
391
391
|
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
392
392
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
393
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling
|
393
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentGuardsContentRedirectApi.update"
|
394
394
|
end
|
395
395
|
# verify the required parameter 'container_content_redirect_content_guard' is set
|
396
396
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard.nil?
|
397
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling
|
397
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling ContentGuardsContentRedirectApi.update"
|
398
398
|
end
|
399
399
|
# resource path
|
400
400
|
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
@@ -432,7 +432,7 @@ module PulpContainerClient
|
|
432
432
|
|
433
433
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
434
434
|
if @api_client.config.debugging
|
435
|
-
@api_client.config.logger.debug "API called:
|
435
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
436
|
end
|
437
437
|
return data, status_code, headers
|
438
438
|
end
|
@@ -15,40 +15,44 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
22
|
-
attr_accessor :content_guard
|
18
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
19
|
+
attr_accessor :name
|
23
20
|
|
24
21
|
# The latest RepositoryVersion for this Repository will be served.
|
25
22
|
attr_accessor :repository
|
26
23
|
|
24
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
25
|
+
attr_accessor :content_guard
|
26
|
+
|
27
27
|
# RepositoryVersion to be served
|
28
28
|
attr_accessor :repository_version
|
29
29
|
|
30
|
-
|
31
|
-
|
30
|
+
attr_accessor :pulp_labels
|
31
|
+
|
32
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
33
|
+
attr_accessor :base_path
|
32
34
|
|
33
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
36
|
def self.attribute_map
|
35
37
|
{
|
36
|
-
:'
|
37
|
-
:'content_guard' => :'content_guard',
|
38
|
+
:'name' => :'name',
|
38
39
|
:'repository' => :'repository',
|
40
|
+
:'content_guard' => :'content_guard',
|
39
41
|
:'repository_version' => :'repository_version',
|
40
|
-
:'
|
42
|
+
:'pulp_labels' => :'pulp_labels',
|
43
|
+
:'base_path' => :'base_path'
|
41
44
|
}
|
42
45
|
end
|
43
46
|
|
44
47
|
# Attribute type mapping.
|
45
48
|
def self.openapi_types
|
46
49
|
{
|
47
|
-
:'
|
48
|
-
:'content_guard' => :'String',
|
50
|
+
:'name' => :'String',
|
49
51
|
:'repository' => :'String',
|
52
|
+
:'content_guard' => :'String',
|
50
53
|
:'repository_version' => :'String',
|
51
|
-
:'
|
54
|
+
:'pulp_labels' => :'Object',
|
55
|
+
:'base_path' => :'String'
|
52
56
|
}
|
53
57
|
end
|
54
58
|
|
@@ -75,24 +79,28 @@ module PulpContainerClient
|
|
75
79
|
h[k.to_sym] = v
|
76
80
|
}
|
77
81
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'content_guard')
|
83
|
-
self.content_guard = attributes[:'content_guard']
|
82
|
+
if attributes.key?(:'name')
|
83
|
+
self.name = attributes[:'name']
|
84
84
|
end
|
85
85
|
|
86
86
|
if attributes.key?(:'repository')
|
87
87
|
self.repository = attributes[:'repository']
|
88
88
|
end
|
89
89
|
|
90
|
+
if attributes.key?(:'content_guard')
|
91
|
+
self.content_guard = attributes[:'content_guard']
|
92
|
+
end
|
93
|
+
|
90
94
|
if attributes.key?(:'repository_version')
|
91
95
|
self.repository_version = attributes[:'repository_version']
|
92
96
|
end
|
93
97
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
98
|
+
if attributes.key?(:'pulp_labels')
|
99
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'base_path')
|
103
|
+
self.base_path = attributes[:'base_path']
|
96
104
|
end
|
97
105
|
end
|
98
106
|
|
@@ -100,22 +108,22 @@ module PulpContainerClient
|
|
100
108
|
# @return Array for valid properties with the reasons
|
101
109
|
def list_invalid_properties
|
102
110
|
invalid_properties = Array.new
|
103
|
-
if @base_path.nil?
|
104
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
105
|
-
end
|
106
|
-
|
107
111
|
if @name.nil?
|
108
112
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
109
113
|
end
|
110
114
|
|
115
|
+
if @base_path.nil?
|
116
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
117
|
+
end
|
118
|
+
|
111
119
|
invalid_properties
|
112
120
|
end
|
113
121
|
|
114
122
|
# Check to see if the all the properties in the model are valid
|
115
123
|
# @return true if the model is valid
|
116
124
|
def valid?
|
117
|
-
return false if @base_path.nil?
|
118
125
|
return false if @name.nil?
|
126
|
+
return false if @base_path.nil?
|
119
127
|
true
|
120
128
|
end
|
121
129
|
|
@@ -124,11 +132,12 @@ module PulpContainerClient
|
|
124
132
|
def ==(o)
|
125
133
|
return true if self.equal?(o)
|
126
134
|
self.class == o.class &&
|
127
|
-
|
128
|
-
content_guard == o.content_guard &&
|
135
|
+
name == o.name &&
|
129
136
|
repository == o.repository &&
|
137
|
+
content_guard == o.content_guard &&
|
130
138
|
repository_version == o.repository_version &&
|
131
|
-
|
139
|
+
pulp_labels == o.pulp_labels &&
|
140
|
+
base_path == o.base_path
|
132
141
|
end
|
133
142
|
|
134
143
|
# @see the `==` method
|
@@ -140,7 +149,7 @@ module PulpContainerClient
|
|
140
149
|
# Calculates hash code according to all attributes.
|
141
150
|
# @return [Integer] Hash code
|
142
151
|
def hash
|
143
|
-
[
|
152
|
+
[name, repository, content_guard, repository_version, pulp_labels, base_path].hash
|
144
153
|
end
|
145
154
|
|
146
155
|
# Builds the object from hash
|
@@ -15,25 +15,27 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
# 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
|
-
attr_accessor :base_path
|
20
|
-
|
21
|
-
# Timestamp of creation.
|
22
|
-
attr_accessor :pulp_created
|
23
|
-
|
24
18
|
attr_accessor :pulp_href
|
25
19
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
20
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
21
|
+
attr_accessor :name
|
28
22
|
|
29
23
|
# The latest RepositoryVersion for this Repository will be served.
|
30
24
|
attr_accessor :repository
|
31
25
|
|
26
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
27
|
+
attr_accessor :content_guard
|
28
|
+
|
32
29
|
# RepositoryVersion to be served
|
33
30
|
attr_accessor :repository_version
|
34
31
|
|
35
|
-
|
36
|
-
|
32
|
+
attr_accessor :pulp_labels
|
33
|
+
|
34
|
+
# Timestamp of creation.
|
35
|
+
attr_accessor :pulp_created
|
36
|
+
|
37
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
38
|
+
attr_accessor :base_path
|
37
39
|
|
38
40
|
# The Registry hostame/name/ to use with docker pull command defined by this distribution.
|
39
41
|
attr_accessor :registry_path
|
@@ -44,13 +46,14 @@ module PulpContainerClient
|
|
44
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
47
|
def self.attribute_map
|
46
48
|
{
|
47
|
-
:'base_path' => :'base_path',
|
48
|
-
:'pulp_created' => :'pulp_created',
|
49
49
|
:'pulp_href' => :'pulp_href',
|
50
|
-
:'
|
50
|
+
:'name' => :'name',
|
51
51
|
:'repository' => :'repository',
|
52
|
+
:'content_guard' => :'content_guard',
|
52
53
|
:'repository_version' => :'repository_version',
|
53
|
-
:'
|
54
|
+
:'pulp_labels' => :'pulp_labels',
|
55
|
+
:'pulp_created' => :'pulp_created',
|
56
|
+
:'base_path' => :'base_path',
|
54
57
|
:'registry_path' => :'registry_path',
|
55
58
|
:'namespace' => :'namespace'
|
56
59
|
}
|
@@ -59,13 +62,14 @@ module PulpContainerClient
|
|
59
62
|
# Attribute type mapping.
|
60
63
|
def self.openapi_types
|
61
64
|
{
|
62
|
-
:'base_path' => :'String',
|
63
|
-
:'pulp_created' => :'DateTime',
|
64
65
|
:'pulp_href' => :'String',
|
65
|
-
:'
|
66
|
+
:'name' => :'String',
|
66
67
|
:'repository' => :'String',
|
68
|
+
:'content_guard' => :'String',
|
67
69
|
:'repository_version' => :'String',
|
68
|
-
:'
|
70
|
+
:'pulp_labels' => :'Object',
|
71
|
+
:'pulp_created' => :'DateTime',
|
72
|
+
:'base_path' => :'String',
|
69
73
|
:'registry_path' => :'String',
|
70
74
|
:'namespace' => :'String'
|
71
75
|
}
|
@@ -94,32 +98,36 @@ module PulpContainerClient
|
|
94
98
|
h[k.to_sym] = v
|
95
99
|
}
|
96
100
|
|
97
|
-
if attributes.key?(:'base_path')
|
98
|
-
self.base_path = attributes[:'base_path']
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.key?(:'pulp_created')
|
102
|
-
self.pulp_created = attributes[:'pulp_created']
|
103
|
-
end
|
104
|
-
|
105
101
|
if attributes.key?(:'pulp_href')
|
106
102
|
self.pulp_href = attributes[:'pulp_href']
|
107
103
|
end
|
108
104
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
105
|
+
if attributes.key?(:'name')
|
106
|
+
self.name = attributes[:'name']
|
111
107
|
end
|
112
108
|
|
113
109
|
if attributes.key?(:'repository')
|
114
110
|
self.repository = attributes[:'repository']
|
115
111
|
end
|
116
112
|
|
113
|
+
if attributes.key?(:'content_guard')
|
114
|
+
self.content_guard = attributes[:'content_guard']
|
115
|
+
end
|
116
|
+
|
117
117
|
if attributes.key?(:'repository_version')
|
118
118
|
self.repository_version = attributes[:'repository_version']
|
119
119
|
end
|
120
120
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
121
|
+
if attributes.key?(:'pulp_labels')
|
122
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'pulp_created')
|
126
|
+
self.pulp_created = attributes[:'pulp_created']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'base_path')
|
130
|
+
self.base_path = attributes[:'base_path']
|
123
131
|
end
|
124
132
|
|
125
133
|
if attributes.key?(:'registry_path')
|
@@ -135,22 +143,22 @@ module PulpContainerClient
|
|
135
143
|
# @return Array for valid properties with the reasons
|
136
144
|
def list_invalid_properties
|
137
145
|
invalid_properties = Array.new
|
138
|
-
if @base_path.nil?
|
139
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
140
|
-
end
|
141
|
-
|
142
146
|
if @name.nil?
|
143
147
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
144
148
|
end
|
145
149
|
|
150
|
+
if @base_path.nil?
|
151
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
152
|
+
end
|
153
|
+
|
146
154
|
invalid_properties
|
147
155
|
end
|
148
156
|
|
149
157
|
# Check to see if the all the properties in the model are valid
|
150
158
|
# @return true if the model is valid
|
151
159
|
def valid?
|
152
|
-
return false if @base_path.nil?
|
153
160
|
return false if @name.nil?
|
161
|
+
return false if @base_path.nil?
|
154
162
|
true
|
155
163
|
end
|
156
164
|
|
@@ -159,13 +167,14 @@ module PulpContainerClient
|
|
159
167
|
def ==(o)
|
160
168
|
return true if self.equal?(o)
|
161
169
|
self.class == o.class &&
|
162
|
-
base_path == o.base_path &&
|
163
|
-
pulp_created == o.pulp_created &&
|
164
170
|
pulp_href == o.pulp_href &&
|
165
|
-
|
171
|
+
name == o.name &&
|
166
172
|
repository == o.repository &&
|
173
|
+
content_guard == o.content_guard &&
|
167
174
|
repository_version == o.repository_version &&
|
168
|
-
|
175
|
+
pulp_labels == o.pulp_labels &&
|
176
|
+
pulp_created == o.pulp_created &&
|
177
|
+
base_path == o.base_path &&
|
169
178
|
registry_path == o.registry_path &&
|
170
179
|
namespace == o.namespace
|
171
180
|
end
|
@@ -179,7 +188,7 @@ module PulpContainerClient
|
|
179
188
|
# Calculates hash code according to all attributes.
|
180
189
|
# @return [Integer] Hash code
|
181
190
|
def hash
|
182
|
-
[
|
191
|
+
[pulp_href, name, repository, content_guard, repository_version, pulp_labels, pulp_created, base_path, registry_path, namespace].hash
|
183
192
|
end
|
184
193
|
|
185
194
|
# Builds the object from hash
|