pulp_container_client 2.14.0.dev1660017625 → 2.14.0.dev1660102598
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 +4 -4
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +7 -7
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/RepositoriesContainerApi.md +2 -0
- data/docs/RepositoriesContainerPushApi.md +2 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +3 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +3 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +52 -52
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +33 -33
- data/lib/pulp_container_client/models/container_container_push_repository.rb +51 -51
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +43 -43
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/repositories_container_api_spec.rb +1 -0
- data/spec/api/repositories_container_push_api_spec.rb +1 -0
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +2 -2
|
@@ -15,24 +15,24 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistributionResponse
|
|
18
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
19
|
-
attr_accessor :repository
|
|
20
|
-
|
|
21
18
|
# Timestamp of creation.
|
|
22
19
|
attr_accessor :pulp_created
|
|
23
20
|
|
|
24
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
|
-
attr_accessor :name
|
|
26
|
-
|
|
27
21
|
attr_accessor :pulp_labels
|
|
28
22
|
|
|
29
23
|
attr_accessor :pulp_href
|
|
30
24
|
|
|
25
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
26
|
+
attr_accessor :base_path
|
|
27
|
+
|
|
31
28
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
32
29
|
attr_accessor :content_guard
|
|
33
30
|
|
|
34
|
-
#
|
|
35
|
-
attr_accessor :
|
|
31
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
32
|
+
attr_accessor :name
|
|
33
|
+
|
|
34
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
35
|
+
attr_accessor :repository
|
|
36
36
|
|
|
37
37
|
# RepositoryVersion to be served
|
|
38
38
|
attr_accessor :repository_version
|
|
@@ -52,13 +52,13 @@ module PulpContainerClient
|
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
53
|
def self.attribute_map
|
|
54
54
|
{
|
|
55
|
-
:'repository' => :'repository',
|
|
56
55
|
:'pulp_created' => :'pulp_created',
|
|
57
|
-
:'name' => :'name',
|
|
58
56
|
:'pulp_labels' => :'pulp_labels',
|
|
59
57
|
:'pulp_href' => :'pulp_href',
|
|
60
|
-
:'content_guard' => :'content_guard',
|
|
61
58
|
:'base_path' => :'base_path',
|
|
59
|
+
:'content_guard' => :'content_guard',
|
|
60
|
+
:'name' => :'name',
|
|
61
|
+
:'repository' => :'repository',
|
|
62
62
|
:'repository_version' => :'repository_version',
|
|
63
63
|
:'registry_path' => :'registry_path',
|
|
64
64
|
:'namespace' => :'namespace',
|
|
@@ -70,13 +70,13 @@ module PulpContainerClient
|
|
|
70
70
|
# Attribute type mapping.
|
|
71
71
|
def self.openapi_types
|
|
72
72
|
{
|
|
73
|
-
:'repository' => :'String',
|
|
74
73
|
:'pulp_created' => :'DateTime',
|
|
75
|
-
:'name' => :'String',
|
|
76
74
|
:'pulp_labels' => :'Object',
|
|
77
75
|
:'pulp_href' => :'String',
|
|
78
|
-
:'content_guard' => :'String',
|
|
79
76
|
:'base_path' => :'String',
|
|
77
|
+
:'content_guard' => :'String',
|
|
78
|
+
:'name' => :'String',
|
|
79
|
+
:'repository' => :'String',
|
|
80
80
|
:'repository_version' => :'String',
|
|
81
81
|
:'registry_path' => :'String',
|
|
82
82
|
:'namespace' => :'String',
|
|
@@ -109,18 +109,10 @@ module PulpContainerClient
|
|
|
109
109
|
h[k.to_sym] = v
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
if attributes.key?(:'repository')
|
|
113
|
-
self.repository = attributes[:'repository']
|
|
114
|
-
end
|
|
115
|
-
|
|
116
112
|
if attributes.key?(:'pulp_created')
|
|
117
113
|
self.pulp_created = attributes[:'pulp_created']
|
|
118
114
|
end
|
|
119
115
|
|
|
120
|
-
if attributes.key?(:'name')
|
|
121
|
-
self.name = attributes[:'name']
|
|
122
|
-
end
|
|
123
|
-
|
|
124
116
|
if attributes.key?(:'pulp_labels')
|
|
125
117
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
126
118
|
end
|
|
@@ -129,12 +121,20 @@ module PulpContainerClient
|
|
|
129
121
|
self.pulp_href = attributes[:'pulp_href']
|
|
130
122
|
end
|
|
131
123
|
|
|
124
|
+
if attributes.key?(:'base_path')
|
|
125
|
+
self.base_path = attributes[:'base_path']
|
|
126
|
+
end
|
|
127
|
+
|
|
132
128
|
if attributes.key?(:'content_guard')
|
|
133
129
|
self.content_guard = attributes[:'content_guard']
|
|
134
130
|
end
|
|
135
131
|
|
|
136
|
-
if attributes.key?(:'
|
|
137
|
-
self.
|
|
132
|
+
if attributes.key?(:'name')
|
|
133
|
+
self.name = attributes[:'name']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'repository')
|
|
137
|
+
self.repository = attributes[:'repository']
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
if attributes.key?(:'repository_version')
|
|
@@ -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,13 +186,13 @@ module PulpContainerClient
|
|
|
186
186
|
def ==(o)
|
|
187
187
|
return true if self.equal?(o)
|
|
188
188
|
self.class == o.class &&
|
|
189
|
-
repository == o.repository &&
|
|
190
189
|
pulp_created == o.pulp_created &&
|
|
191
|
-
name == o.name &&
|
|
192
190
|
pulp_labels == o.pulp_labels &&
|
|
193
191
|
pulp_href == o.pulp_href &&
|
|
194
|
-
content_guard == o.content_guard &&
|
|
195
192
|
base_path == o.base_path &&
|
|
193
|
+
content_guard == o.content_guard &&
|
|
194
|
+
name == o.name &&
|
|
195
|
+
repository == o.repository &&
|
|
196
196
|
repository_version == o.repository_version &&
|
|
197
197
|
registry_path == o.registry_path &&
|
|
198
198
|
namespace == o.namespace &&
|
|
@@ -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
|
+
[pulp_created, pulp_labels, pulp_href, base_path, content_guard, name, repository, repository_version, registry_path, namespace, private, description].hash
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
# Builds the object from hash
|
|
@@ -15,48 +15,48 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
19
|
+
attr_accessor :retain_repo_versions
|
|
20
|
+
|
|
21
|
+
# An optional description.
|
|
22
|
+
attr_accessor :description
|
|
20
23
|
|
|
21
24
|
attr_accessor :pulp_labels
|
|
22
25
|
|
|
23
26
|
# A reference to an associated signing service.
|
|
24
27
|
attr_accessor :manifest_signing_service
|
|
25
28
|
|
|
26
|
-
#
|
|
27
|
-
attr_accessor :
|
|
28
|
-
|
|
29
|
-
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
30
|
-
attr_accessor :retain_repo_versions
|
|
29
|
+
# A unique name for this repository.
|
|
30
|
+
attr_accessor :name
|
|
31
31
|
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
|
-
:'
|
|
35
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
36
|
+
:'description' => :'description',
|
|
36
37
|
:'pulp_labels' => :'pulp_labels',
|
|
37
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
38
|
-
:'
|
|
39
|
-
:'retain_repo_versions' => :'retain_repo_versions'
|
|
39
|
+
:'name' => :'name'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
-
:'
|
|
46
|
+
:'retain_repo_versions' => :'Integer',
|
|
47
|
+
:'description' => :'String',
|
|
47
48
|
:'pulp_labels' => :'Object',
|
|
48
49
|
:'manifest_signing_service' => :'String',
|
|
49
|
-
:'
|
|
50
|
-
:'retain_repo_versions' => :'Integer'
|
|
50
|
+
:'name' => :'String'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# List of attributes with nullable: true
|
|
55
55
|
def self.openapi_nullable
|
|
56
56
|
Set.new([
|
|
57
|
-
:'
|
|
57
|
+
:'retain_repo_versions',
|
|
58
58
|
:'description',
|
|
59
|
-
:'
|
|
59
|
+
:'manifest_signing_service',
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,8 +75,12 @@ module PulpContainerClient
|
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
self.
|
|
78
|
+
if attributes.key?(:'retain_repo_versions')
|
|
79
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'description')
|
|
83
|
+
self.description = attributes[:'description']
|
|
80
84
|
end
|
|
81
85
|
|
|
82
86
|
if attributes.key?(:'pulp_labels')
|
|
@@ -87,12 +91,8 @@ module PulpContainerClient
|
|
|
87
91
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
88
92
|
end
|
|
89
93
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
if attributes.key?(:'retain_repo_versions')
|
|
95
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
94
|
+
if attributes.key?(:'name')
|
|
95
|
+
self.name = attributes[:'name']
|
|
96
96
|
end
|
|
97
97
|
end
|
|
98
98
|
|
|
@@ -100,20 +100,20 @@ module PulpContainerClient
|
|
|
100
100
|
# @return Array for valid properties with the reasons
|
|
101
101
|
def list_invalid_properties
|
|
102
102
|
invalid_properties = Array.new
|
|
103
|
-
if
|
|
104
|
-
invalid_properties.push('invalid value for "
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
if @name.to_s.length < 1
|
|
108
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
103
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
104
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
109
105
|
end
|
|
110
106
|
|
|
111
107
|
if !@description.nil? && @description.to_s.length < 1
|
|
112
108
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
113
109
|
end
|
|
114
110
|
|
|
115
|
-
if
|
|
116
|
-
invalid_properties.push('invalid value for "
|
|
111
|
+
if @name.nil?
|
|
112
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if @name.to_s.length < 1
|
|
116
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
invalid_properties
|
|
@@ -122,25 +122,21 @@ module PulpContainerClient
|
|
|
122
122
|
# Check to see if the all the properties in the model are valid
|
|
123
123
|
# @return true if the model is valid
|
|
124
124
|
def valid?
|
|
125
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
126
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
125
127
|
return false if @name.nil?
|
|
126
128
|
return false if @name.to_s.length < 1
|
|
127
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
128
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
129
129
|
true
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
# Custom attribute writer method with validation
|
|
133
|
-
# @param [Object]
|
|
134
|
-
def
|
|
135
|
-
if
|
|
136
|
-
fail ArgumentError, '
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
if name.to_s.length < 1
|
|
140
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
133
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
134
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
135
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
136
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
141
137
|
end
|
|
142
138
|
|
|
143
|
-
@
|
|
139
|
+
@retain_repo_versions = retain_repo_versions
|
|
144
140
|
end
|
|
145
141
|
|
|
146
142
|
# Custom attribute writer method with validation
|
|
@@ -154,13 +150,17 @@ module PulpContainerClient
|
|
|
154
150
|
end
|
|
155
151
|
|
|
156
152
|
# Custom attribute writer method with validation
|
|
157
|
-
# @param [Object]
|
|
158
|
-
def
|
|
159
|
-
if
|
|
160
|
-
fail ArgumentError, '
|
|
153
|
+
# @param [Object] name Value to be assigned
|
|
154
|
+
def name=(name)
|
|
155
|
+
if name.nil?
|
|
156
|
+
fail ArgumentError, 'name cannot be nil'
|
|
161
157
|
end
|
|
162
158
|
|
|
163
|
-
|
|
159
|
+
if name.to_s.length < 1
|
|
160
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
@name = name
|
|
164
164
|
end
|
|
165
165
|
|
|
166
166
|
# Checks equality by comparing each attribute.
|
|
@@ -168,11 +168,11 @@ module PulpContainerClient
|
|
|
168
168
|
def ==(o)
|
|
169
169
|
return true if self.equal?(o)
|
|
170
170
|
self.class == o.class &&
|
|
171
|
-
|
|
171
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
172
|
+
description == o.description &&
|
|
172
173
|
pulp_labels == o.pulp_labels &&
|
|
173
174
|
manifest_signing_service == o.manifest_signing_service &&
|
|
174
|
-
|
|
175
|
-
retain_repo_versions == o.retain_repo_versions
|
|
175
|
+
name == o.name
|
|
176
176
|
end
|
|
177
177
|
|
|
178
178
|
# @see the `==` method
|
|
@@ -184,7 +184,7 @@ module PulpContainerClient
|
|
|
184
184
|
# Calculates hash code according to all attributes.
|
|
185
185
|
# @return [Integer] Hash code
|
|
186
186
|
def hash
|
|
187
|
-
[
|
|
187
|
+
[retain_repo_versions, description, pulp_labels, manifest_signing_service, name].hash
|
|
188
188
|
end
|
|
189
189
|
|
|
190
190
|
# Builds the object from hash
|
|
@@ -15,15 +15,16 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
-
# Timestamp of creation.
|
|
19
|
-
attr_accessor :pulp_created
|
|
20
|
-
|
|
21
18
|
attr_accessor :latest_version_href
|
|
22
19
|
|
|
23
|
-
|
|
20
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
21
|
+
attr_accessor :retain_repo_versions
|
|
24
22
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
23
|
+
# Timestamp of creation.
|
|
24
|
+
attr_accessor :pulp_created
|
|
25
|
+
|
|
26
|
+
# An optional description.
|
|
27
|
+
attr_accessor :description
|
|
27
28
|
|
|
28
29
|
attr_accessor :pulp_labels
|
|
29
30
|
|
|
@@ -32,48 +33,47 @@ module PulpContainerClient
|
|
|
32
33
|
# A reference to an associated signing service.
|
|
33
34
|
attr_accessor :manifest_signing_service
|
|
34
35
|
|
|
35
|
-
#
|
|
36
|
-
attr_accessor :
|
|
36
|
+
# A unique name for this repository.
|
|
37
|
+
attr_accessor :name
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
attr_accessor :retain_repo_versions
|
|
39
|
+
attr_accessor :versions_href
|
|
40
40
|
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
42
|
def self.attribute_map
|
|
43
43
|
{
|
|
44
|
-
:'pulp_created' => :'pulp_created',
|
|
45
44
|
:'latest_version_href' => :'latest_version_href',
|
|
46
|
-
:'
|
|
47
|
-
:'
|
|
45
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
46
|
+
:'pulp_created' => :'pulp_created',
|
|
47
|
+
:'description' => :'description',
|
|
48
48
|
:'pulp_labels' => :'pulp_labels',
|
|
49
49
|
:'pulp_href' => :'pulp_href',
|
|
50
50
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
51
|
-
:'
|
|
52
|
-
:'
|
|
51
|
+
:'name' => :'name',
|
|
52
|
+
:'versions_href' => :'versions_href'
|
|
53
53
|
}
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
# Attribute type mapping.
|
|
57
57
|
def self.openapi_types
|
|
58
58
|
{
|
|
59
|
-
:'pulp_created' => :'DateTime',
|
|
60
59
|
:'latest_version_href' => :'String',
|
|
61
|
-
:'
|
|
62
|
-
:'
|
|
60
|
+
:'retain_repo_versions' => :'Integer',
|
|
61
|
+
:'pulp_created' => :'DateTime',
|
|
62
|
+
:'description' => :'String',
|
|
63
63
|
:'pulp_labels' => :'Object',
|
|
64
64
|
:'pulp_href' => :'String',
|
|
65
65
|
:'manifest_signing_service' => :'String',
|
|
66
|
-
:'
|
|
67
|
-
:'
|
|
66
|
+
:'name' => :'String',
|
|
67
|
+
:'versions_href' => :'String'
|
|
68
68
|
}
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
# List of attributes with nullable: true
|
|
72
72
|
def self.openapi_nullable
|
|
73
73
|
Set.new([
|
|
74
|
-
:'
|
|
74
|
+
:'retain_repo_versions',
|
|
75
75
|
:'description',
|
|
76
|
-
:'
|
|
76
|
+
:'manifest_signing_service',
|
|
77
77
|
])
|
|
78
78
|
end
|
|
79
79
|
|
|
@@ -92,20 +92,20 @@ module PulpContainerClient
|
|
|
92
92
|
h[k.to_sym] = v
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
if attributes.key?(:'pulp_created')
|
|
96
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
97
|
-
end
|
|
98
|
-
|
|
99
95
|
if attributes.key?(:'latest_version_href')
|
|
100
96
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
101
97
|
end
|
|
102
98
|
|
|
103
|
-
if attributes.key?(:'
|
|
104
|
-
self.
|
|
99
|
+
if attributes.key?(:'retain_repo_versions')
|
|
100
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
105
101
|
end
|
|
106
102
|
|
|
107
|
-
if attributes.key?(:'
|
|
108
|
-
self.
|
|
103
|
+
if attributes.key?(:'pulp_created')
|
|
104
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'description')
|
|
108
|
+
self.description = attributes[:'description']
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
if attributes.key?(:'pulp_labels')
|
|
@@ -120,12 +120,12 @@ module PulpContainerClient
|
|
|
120
120
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
123
|
+
if attributes.key?(:'name')
|
|
124
|
+
self.name = attributes[:'name']
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
127
|
+
if attributes.key?(:'versions_href')
|
|
128
|
+
self.versions_href = attributes[:'versions_href']
|
|
129
129
|
end
|
|
130
130
|
end
|
|
131
131
|
|
|
@@ -133,22 +133,22 @@ module PulpContainerClient
|
|
|
133
133
|
# @return Array for valid properties with the reasons
|
|
134
134
|
def list_invalid_properties
|
|
135
135
|
invalid_properties = Array.new
|
|
136
|
-
if @name.nil?
|
|
137
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
138
|
-
end
|
|
139
|
-
|
|
140
136
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
141
137
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
142
138
|
end
|
|
143
139
|
|
|
140
|
+
if @name.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
144
|
invalid_properties
|
|
145
145
|
end
|
|
146
146
|
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
|
148
148
|
# @return true if the model is valid
|
|
149
149
|
def valid?
|
|
150
|
-
return false if @name.nil?
|
|
151
150
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
151
|
+
return false if @name.nil?
|
|
152
152
|
true
|
|
153
153
|
end
|
|
154
154
|
|
|
@@ -167,15 +167,15 @@ module PulpContainerClient
|
|
|
167
167
|
def ==(o)
|
|
168
168
|
return true if self.equal?(o)
|
|
169
169
|
self.class == o.class &&
|
|
170
|
-
pulp_created == o.pulp_created &&
|
|
171
170
|
latest_version_href == o.latest_version_href &&
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
172
|
+
pulp_created == o.pulp_created &&
|
|
173
|
+
description == o.description &&
|
|
174
174
|
pulp_labels == o.pulp_labels &&
|
|
175
175
|
pulp_href == o.pulp_href &&
|
|
176
176
|
manifest_signing_service == o.manifest_signing_service &&
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
name == o.name &&
|
|
178
|
+
versions_href == o.versions_href
|
|
179
179
|
end
|
|
180
180
|
|
|
181
181
|
# @see the `==` method
|
|
@@ -187,7 +187,7 @@ module PulpContainerClient
|
|
|
187
187
|
# Calculates hash code according to all attributes.
|
|
188
188
|
# @return [Integer] Hash code
|
|
189
189
|
def hash
|
|
190
|
-
[
|
|
190
|
+
[latest_version_href, retain_repo_versions, pulp_created, description, pulp_labels, pulp_href, manifest_signing_service, name, versions_href].hash
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
# Builds the object from hash
|