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