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