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