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