pulp_container_client 2.27.4 → 2.27.6
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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +18 -18
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/DistributionsPullThroughApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +80 -80
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +55 -55
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +80 -80
- data/lib/pulp_container_client/models/container_container_push_repository.rb +67 -67
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +69 -69
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +48 -48
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +48 -48
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +67 -67
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +6 -6
- metadata +60 -60
|
@@ -16,32 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
-
# A unique name for this repository.
|
|
20
|
-
attr_accessor :name
|
|
21
|
-
|
|
22
19
|
# A reference to an associated signing service.
|
|
23
20
|
attr_accessor :manifest_signing_service
|
|
24
21
|
|
|
25
|
-
attr_accessor :pulp_labels
|
|
26
|
-
|
|
27
|
-
# An optional description.
|
|
28
|
-
attr_accessor :description
|
|
29
|
-
|
|
30
22
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
31
23
|
attr_accessor :retain_repo_versions
|
|
32
24
|
|
|
33
25
|
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
34
26
|
attr_accessor :retain_checkpoints
|
|
35
27
|
|
|
28
|
+
# A unique name for this repository.
|
|
29
|
+
attr_accessor :name
|
|
30
|
+
|
|
31
|
+
# An optional description.
|
|
32
|
+
attr_accessor :description
|
|
33
|
+
|
|
34
|
+
attr_accessor :pulp_labels
|
|
35
|
+
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'name' => :'name',
|
|
40
39
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
41
|
-
:'pulp_labels' => :'pulp_labels',
|
|
42
|
-
:'description' => :'description',
|
|
43
40
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
44
|
-
:'retain_checkpoints' => :'retain_checkpoints'
|
|
41
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
42
|
+
:'name' => :'name',
|
|
43
|
+
:'description' => :'description',
|
|
44
|
+
:'pulp_labels' => :'pulp_labels'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -53,12 +53,12 @@ module PulpContainerClient
|
|
|
53
53
|
# Attribute type mapping.
|
|
54
54
|
def self.openapi_types
|
|
55
55
|
{
|
|
56
|
-
:'name' => :'String',
|
|
57
56
|
:'manifest_signing_service' => :'String',
|
|
58
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
59
|
-
:'description' => :'String',
|
|
60
57
|
:'retain_repo_versions' => :'Integer',
|
|
61
|
-
:'retain_checkpoints' => :'Integer'
|
|
58
|
+
:'retain_checkpoints' => :'Integer',
|
|
59
|
+
:'name' => :'String',
|
|
60
|
+
:'description' => :'String',
|
|
61
|
+
:'pulp_labels' => :'Hash<String, String>'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -66,9 +66,9 @@ module PulpContainerClient
|
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
68
|
:'manifest_signing_service',
|
|
69
|
-
:'description',
|
|
70
69
|
:'retain_repo_versions',
|
|
71
|
-
:'retain_checkpoints'
|
|
70
|
+
:'retain_checkpoints',
|
|
71
|
+
:'description',
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,14 +87,26 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
if attributes.key?(:'manifest_signing_service')
|
|
91
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'retain_repo_versions')
|
|
95
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'retain_checkpoints')
|
|
99
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
100
|
+
end
|
|
101
|
+
|
|
90
102
|
if attributes.key?(:'name')
|
|
91
103
|
self.name = attributes[:'name']
|
|
92
104
|
else
|
|
93
105
|
self.name = nil
|
|
94
106
|
end
|
|
95
107
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
108
|
+
if attributes.key?(:'description')
|
|
109
|
+
self.description = attributes[:'description']
|
|
98
110
|
end
|
|
99
111
|
|
|
100
112
|
if attributes.key?(:'pulp_labels')
|
|
@@ -102,18 +114,6 @@ module PulpContainerClient
|
|
|
102
114
|
self.pulp_labels = value
|
|
103
115
|
end
|
|
104
116
|
end
|
|
105
|
-
|
|
106
|
-
if attributes.key?(:'description')
|
|
107
|
-
self.description = attributes[:'description']
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
if attributes.key?(:'retain_repo_versions')
|
|
111
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
if attributes.key?(:'retain_checkpoints')
|
|
115
|
-
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
116
|
-
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -121,6 +121,14 @@ module PulpContainerClient
|
|
|
121
121
|
def list_invalid_properties
|
|
122
122
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
123
123
|
invalid_properties = Array.new
|
|
124
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
125
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
129
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
130
|
+
end
|
|
131
|
+
|
|
124
132
|
if @name.nil?
|
|
125
133
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
126
134
|
end
|
|
@@ -133,14 +141,6 @@ module PulpContainerClient
|
|
|
133
141
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
134
142
|
end
|
|
135
143
|
|
|
136
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
137
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
141
|
-
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
142
|
-
end
|
|
143
|
-
|
|
144
144
|
invalid_properties
|
|
145
145
|
end
|
|
146
146
|
|
|
@@ -148,14 +148,34 @@ module PulpContainerClient
|
|
|
148
148
|
# @return true if the model is valid
|
|
149
149
|
def valid?
|
|
150
150
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
152
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
151
153
|
return false if @name.nil?
|
|
152
154
|
return false if @name.to_s.length < 1
|
|
153
155
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
154
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
155
|
-
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
156
156
|
true
|
|
157
157
|
end
|
|
158
158
|
|
|
159
|
+
# Custom attribute writer method with validation
|
|
160
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
161
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
162
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
163
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
@retain_repo_versions = retain_repo_versions
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Custom attribute writer method with validation
|
|
170
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
171
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
172
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
173
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
@retain_checkpoints = retain_checkpoints
|
|
177
|
+
end
|
|
178
|
+
|
|
159
179
|
# Custom attribute writer method with validation
|
|
160
180
|
# @param [Object] name Value to be assigned
|
|
161
181
|
def name=(name)
|
|
@@ -180,37 +200,17 @@ module PulpContainerClient
|
|
|
180
200
|
@description = description
|
|
181
201
|
end
|
|
182
202
|
|
|
183
|
-
# Custom attribute writer method with validation
|
|
184
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
185
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
186
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
187
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
@retain_repo_versions = retain_repo_versions
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
# Custom attribute writer method with validation
|
|
194
|
-
# @param [Object] retain_checkpoints Value to be assigned
|
|
195
|
-
def retain_checkpoints=(retain_checkpoints)
|
|
196
|
-
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
197
|
-
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
@retain_checkpoints = retain_checkpoints
|
|
201
|
-
end
|
|
202
|
-
|
|
203
203
|
# Checks equality by comparing each attribute.
|
|
204
204
|
# @param [Object] Object to be compared
|
|
205
205
|
def ==(o)
|
|
206
206
|
return true if self.equal?(o)
|
|
207
207
|
self.class == o.class &&
|
|
208
|
-
name == o.name &&
|
|
209
208
|
manifest_signing_service == o.manifest_signing_service &&
|
|
210
|
-
pulp_labels == o.pulp_labels &&
|
|
211
|
-
description == o.description &&
|
|
212
209
|
retain_repo_versions == o.retain_repo_versions &&
|
|
213
|
-
retain_checkpoints == o.retain_checkpoints
|
|
210
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
211
|
+
name == o.name &&
|
|
212
|
+
description == o.description &&
|
|
213
|
+
pulp_labels == o.pulp_labels
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# @see the `==` method
|
|
@@ -222,7 +222,7 @@ module PulpContainerClient
|
|
|
222
222
|
# Calculates hash code according to all attributes.
|
|
223
223
|
# @return [Integer] Hash code
|
|
224
224
|
def hash
|
|
225
|
-
[
|
|
225
|
+
[manifest_signing_service, retain_repo_versions, retain_checkpoints, name, description, pulp_labels].hash
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# Builds the object from hash
|
|
@@ -16,53 +16,53 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
attr_accessor :latest_version_href
|
|
23
|
-
|
|
24
|
-
# A unique name for this repository.
|
|
25
|
-
attr_accessor :name
|
|
19
|
+
# Timestamp of creation.
|
|
20
|
+
attr_accessor :pulp_created
|
|
26
21
|
|
|
27
22
|
# A reference to an associated signing service.
|
|
28
23
|
attr_accessor :manifest_signing_service
|
|
29
24
|
|
|
30
|
-
|
|
25
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
26
|
+
attr_accessor :retain_repo_versions
|
|
31
27
|
|
|
32
|
-
attr_accessor :
|
|
28
|
+
attr_accessor :latest_version_href
|
|
29
|
+
|
|
30
|
+
attr_accessor :versions_href
|
|
33
31
|
|
|
34
32
|
attr_accessor :pulp_href
|
|
35
33
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
34
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
35
|
+
attr_accessor :retain_checkpoints
|
|
38
36
|
|
|
39
37
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
40
38
|
attr_accessor :pulp_last_updated
|
|
41
39
|
|
|
40
|
+
# The Pulp Resource Name (PRN).
|
|
41
|
+
attr_accessor :prn
|
|
42
|
+
|
|
43
|
+
# A unique name for this repository.
|
|
44
|
+
attr_accessor :name
|
|
45
|
+
|
|
42
46
|
# An optional description.
|
|
43
47
|
attr_accessor :description
|
|
44
48
|
|
|
45
|
-
|
|
46
|
-
attr_accessor :retain_repo_versions
|
|
47
|
-
|
|
48
|
-
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
49
|
-
attr_accessor :retain_checkpoints
|
|
49
|
+
attr_accessor :pulp_labels
|
|
50
50
|
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
|
-
:'
|
|
55
|
-
:'latest_version_href' => :'latest_version_href',
|
|
56
|
-
:'name' => :'name',
|
|
54
|
+
:'pulp_created' => :'pulp_created',
|
|
57
55
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
56
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
57
|
+
:'latest_version_href' => :'latest_version_href',
|
|
58
58
|
:'versions_href' => :'versions_href',
|
|
59
|
-
:'pulp_labels' => :'pulp_labels',
|
|
60
59
|
:'pulp_href' => :'pulp_href',
|
|
61
|
-
:'
|
|
60
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
62
61
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
62
|
+
:'prn' => :'prn',
|
|
63
|
+
:'name' => :'name',
|
|
63
64
|
:'description' => :'description',
|
|
64
|
-
:'
|
|
65
|
-
:'retain_checkpoints' => :'retain_checkpoints'
|
|
65
|
+
:'pulp_labels' => :'pulp_labels'
|
|
66
66
|
}
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -74,18 +74,18 @@ module PulpContainerClient
|
|
|
74
74
|
# Attribute type mapping.
|
|
75
75
|
def self.openapi_types
|
|
76
76
|
{
|
|
77
|
-
:'
|
|
78
|
-
:'latest_version_href' => :'String',
|
|
79
|
-
:'name' => :'String',
|
|
77
|
+
:'pulp_created' => :'Time',
|
|
80
78
|
:'manifest_signing_service' => :'String',
|
|
79
|
+
:'retain_repo_versions' => :'Integer',
|
|
80
|
+
:'latest_version_href' => :'String',
|
|
81
81
|
:'versions_href' => :'String',
|
|
82
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
83
82
|
:'pulp_href' => :'String',
|
|
84
|
-
:'
|
|
83
|
+
:'retain_checkpoints' => :'Integer',
|
|
85
84
|
:'pulp_last_updated' => :'Time',
|
|
85
|
+
:'prn' => :'String',
|
|
86
|
+
:'name' => :'String',
|
|
86
87
|
:'description' => :'String',
|
|
87
|
-
:'
|
|
88
|
-
:'retain_checkpoints' => :'Integer'
|
|
88
|
+
:'pulp_labels' => :'Hash<String, String>'
|
|
89
89
|
}
|
|
90
90
|
end
|
|
91
91
|
|
|
@@ -93,9 +93,9 @@ module PulpContainerClient
|
|
|
93
93
|
def self.openapi_nullable
|
|
94
94
|
Set.new([
|
|
95
95
|
:'manifest_signing_service',
|
|
96
|
-
:'description',
|
|
97
96
|
:'retain_repo_versions',
|
|
98
|
-
:'retain_checkpoints'
|
|
97
|
+
:'retain_checkpoints',
|
|
98
|
+
:'description',
|
|
99
99
|
])
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -114,56 +114,56 @@ module PulpContainerClient
|
|
|
114
114
|
h[k.to_sym] = v
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
if attributes.key?(:'
|
|
118
|
-
self.
|
|
117
|
+
if attributes.key?(:'pulp_created')
|
|
118
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
self.
|
|
121
|
+
if attributes.key?(:'manifest_signing_service')
|
|
122
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
self.
|
|
127
|
-
else
|
|
128
|
-
self.name = nil
|
|
125
|
+
if attributes.key?(:'retain_repo_versions')
|
|
126
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
129
127
|
end
|
|
130
128
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
129
|
+
if attributes.key?(:'latest_version_href')
|
|
130
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
133
131
|
end
|
|
134
132
|
|
|
135
133
|
if attributes.key?(:'versions_href')
|
|
136
134
|
self.versions_href = attributes[:'versions_href']
|
|
137
135
|
end
|
|
138
136
|
|
|
139
|
-
if attributes.key?(:'pulp_labels')
|
|
140
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
141
|
-
self.pulp_labels = value
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
|
|
145
137
|
if attributes.key?(:'pulp_href')
|
|
146
138
|
self.pulp_href = attributes[:'pulp_href']
|
|
147
139
|
end
|
|
148
140
|
|
|
149
|
-
if attributes.key?(:'
|
|
150
|
-
self.
|
|
141
|
+
if attributes.key?(:'retain_checkpoints')
|
|
142
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
151
143
|
end
|
|
152
144
|
|
|
153
145
|
if attributes.key?(:'pulp_last_updated')
|
|
154
146
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
155
147
|
end
|
|
156
148
|
|
|
157
|
-
if attributes.key?(:'
|
|
158
|
-
self.
|
|
149
|
+
if attributes.key?(:'prn')
|
|
150
|
+
self.prn = attributes[:'prn']
|
|
159
151
|
end
|
|
160
152
|
|
|
161
|
-
if attributes.key?(:'
|
|
162
|
-
self.
|
|
153
|
+
if attributes.key?(:'name')
|
|
154
|
+
self.name = attributes[:'name']
|
|
155
|
+
else
|
|
156
|
+
self.name = nil
|
|
163
157
|
end
|
|
164
158
|
|
|
165
|
-
if attributes.key?(:'
|
|
166
|
-
self.
|
|
159
|
+
if attributes.key?(:'description')
|
|
160
|
+
self.description = attributes[:'description']
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if attributes.key?(:'pulp_labels')
|
|
164
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
165
|
+
self.pulp_labels = value
|
|
166
|
+
end
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -172,10 +172,6 @@ module PulpContainerClient
|
|
|
172
172
|
def list_invalid_properties
|
|
173
173
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
174
174
|
invalid_properties = Array.new
|
|
175
|
-
if @name.nil?
|
|
176
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
177
|
-
end
|
|
178
|
-
|
|
179
175
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
180
176
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
181
177
|
end
|
|
@@ -184,6 +180,10 @@ module PulpContainerClient
|
|
|
184
180
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
185
181
|
end
|
|
186
182
|
|
|
183
|
+
if @name.nil?
|
|
184
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
185
|
+
end
|
|
186
|
+
|
|
187
187
|
invalid_properties
|
|
188
188
|
end
|
|
189
189
|
|
|
@@ -191,9 +191,9 @@ module PulpContainerClient
|
|
|
191
191
|
# @return true if the model is valid
|
|
192
192
|
def valid?
|
|
193
193
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
194
|
-
return false if @name.nil?
|
|
195
194
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
196
195
|
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
196
|
+
return false if @name.nil?
|
|
197
197
|
true
|
|
198
198
|
end
|
|
199
199
|
|
|
@@ -222,18 +222,18 @@ module PulpContainerClient
|
|
|
222
222
|
def ==(o)
|
|
223
223
|
return true if self.equal?(o)
|
|
224
224
|
self.class == o.class &&
|
|
225
|
-
|
|
226
|
-
latest_version_href == o.latest_version_href &&
|
|
227
|
-
name == o.name &&
|
|
225
|
+
pulp_created == o.pulp_created &&
|
|
228
226
|
manifest_signing_service == o.manifest_signing_service &&
|
|
227
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
228
|
+
latest_version_href == o.latest_version_href &&
|
|
229
229
|
versions_href == o.versions_href &&
|
|
230
|
-
pulp_labels == o.pulp_labels &&
|
|
231
230
|
pulp_href == o.pulp_href &&
|
|
232
|
-
|
|
231
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
233
232
|
pulp_last_updated == o.pulp_last_updated &&
|
|
233
|
+
prn == o.prn &&
|
|
234
|
+
name == o.name &&
|
|
234
235
|
description == o.description &&
|
|
235
|
-
|
|
236
|
-
retain_checkpoints == o.retain_checkpoints
|
|
236
|
+
pulp_labels == o.pulp_labels
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
# @see the `==` method
|
|
@@ -245,7 +245,7 @@ module PulpContainerClient
|
|
|
245
245
|
# Calculates hash code according to all attributes.
|
|
246
246
|
# @return [Integer] Hash code
|
|
247
247
|
def hash
|
|
248
|
-
[
|
|
248
|
+
[pulp_created, manifest_signing_service, retain_repo_versions, latest_version_href, versions_href, pulp_href, retain_checkpoints, pulp_last_updated, prn, name, description, pulp_labels].hash
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# Builds the object from hash
|