pulp_container_client 2.24.14 → 2.24.16
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 +12 -12
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
- 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 +59 -59
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +61 -61
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +59 -59
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +61 -61
- data/lib/pulp_container_client/models/container_container_push_repository.rb +46 -46
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +61 -61
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +52 -52
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +52 -52
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -46
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- 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 +5 -5
- 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 +5 -5
- metadata +57 -57
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
|
@@ -16,36 +16,36 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class ContainerContainerPullThroughDistributionResponse
|
|
19
|
-
|
|
20
|
-
attr_accessor :pulp_created
|
|
19
|
+
attr_accessor :pulp_labels
|
|
21
20
|
|
|
22
21
|
# 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.
|
|
23
22
|
attr_accessor :pulp_last_updated
|
|
24
23
|
|
|
25
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
26
|
-
attr_accessor :content_guard
|
|
27
|
-
|
|
28
|
-
# The registry path exposed by this pull-through distribution.
|
|
29
|
-
attr_accessor :base_path
|
|
30
|
-
|
|
31
|
-
attr_accessor :pulp_href
|
|
32
|
-
|
|
33
24
|
# Whether this distribution should be shown in the content app.
|
|
34
25
|
attr_accessor :hidden
|
|
35
26
|
|
|
27
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
28
|
+
attr_accessor :repository
|
|
29
|
+
|
|
30
|
+
# Timestamp of creation.
|
|
31
|
+
attr_accessor :pulp_created
|
|
32
|
+
|
|
36
33
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
37
34
|
attr_accessor :name
|
|
38
35
|
|
|
39
36
|
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
40
37
|
attr_accessor :no_content_change_since
|
|
41
38
|
|
|
42
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
43
|
-
attr_accessor :repository
|
|
44
|
-
|
|
45
39
|
# The Pulp Resource Name (PRN).
|
|
46
40
|
attr_accessor :prn
|
|
47
41
|
|
|
48
|
-
|
|
42
|
+
# The registry path exposed by this pull-through distribution.
|
|
43
|
+
attr_accessor :base_path
|
|
44
|
+
|
|
45
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
46
|
+
attr_accessor :content_guard
|
|
47
|
+
|
|
48
|
+
attr_accessor :pulp_href
|
|
49
49
|
|
|
50
50
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
51
51
|
attr_accessor :remote
|
|
@@ -65,17 +65,17 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
66
66
|
def self.attribute_map
|
|
67
67
|
{
|
|
68
|
-
:'
|
|
68
|
+
:'pulp_labels' => :'pulp_labels',
|
|
69
69
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
70
|
-
:'content_guard' => :'content_guard',
|
|
71
|
-
:'base_path' => :'base_path',
|
|
72
|
-
:'pulp_href' => :'pulp_href',
|
|
73
70
|
:'hidden' => :'hidden',
|
|
71
|
+
:'repository' => :'repository',
|
|
72
|
+
:'pulp_created' => :'pulp_created',
|
|
74
73
|
:'name' => :'name',
|
|
75
74
|
:'no_content_change_since' => :'no_content_change_since',
|
|
76
|
-
:'repository' => :'repository',
|
|
77
75
|
:'prn' => :'prn',
|
|
78
|
-
:'
|
|
76
|
+
:'base_path' => :'base_path',
|
|
77
|
+
:'content_guard' => :'content_guard',
|
|
78
|
+
:'pulp_href' => :'pulp_href',
|
|
79
79
|
:'remote' => :'remote',
|
|
80
80
|
:'distributions' => :'distributions',
|
|
81
81
|
:'namespace' => :'namespace',
|
|
@@ -92,17 +92,17 @@ module PulpContainerClient
|
|
|
92
92
|
# Attribute type mapping.
|
|
93
93
|
def self.openapi_types
|
|
94
94
|
{
|
|
95
|
-
:'
|
|
95
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
96
96
|
:'pulp_last_updated' => :'Time',
|
|
97
|
-
:'content_guard' => :'String',
|
|
98
|
-
:'base_path' => :'String',
|
|
99
|
-
:'pulp_href' => :'String',
|
|
100
97
|
:'hidden' => :'Boolean',
|
|
98
|
+
:'repository' => :'String',
|
|
99
|
+
:'pulp_created' => :'Time',
|
|
101
100
|
:'name' => :'String',
|
|
102
101
|
:'no_content_change_since' => :'String',
|
|
103
|
-
:'repository' => :'String',
|
|
104
102
|
:'prn' => :'String',
|
|
105
|
-
:'
|
|
103
|
+
:'base_path' => :'String',
|
|
104
|
+
:'content_guard' => :'String',
|
|
105
|
+
:'pulp_href' => :'String',
|
|
106
106
|
:'remote' => :'String',
|
|
107
107
|
:'distributions' => :'Array<String>',
|
|
108
108
|
:'namespace' => :'String',
|
|
@@ -134,32 +134,28 @@ module PulpContainerClient
|
|
|
134
134
|
h[k.to_sym] = v
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
if attributes.key?(:'
|
|
138
|
-
|
|
137
|
+
if attributes.key?(:'pulp_labels')
|
|
138
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
139
|
+
self.pulp_labels = value
|
|
140
|
+
end
|
|
139
141
|
end
|
|
140
142
|
|
|
141
143
|
if attributes.key?(:'pulp_last_updated')
|
|
142
144
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
143
145
|
end
|
|
144
146
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if attributes.key?(:'base_path')
|
|
150
|
-
self.base_path = attributes[:'base_path']
|
|
147
|
+
if attributes.key?(:'hidden')
|
|
148
|
+
self.hidden = attributes[:'hidden']
|
|
151
149
|
else
|
|
152
|
-
self.
|
|
150
|
+
self.hidden = false
|
|
153
151
|
end
|
|
154
152
|
|
|
155
|
-
if attributes.key?(:'
|
|
156
|
-
self.
|
|
153
|
+
if attributes.key?(:'repository')
|
|
154
|
+
self.repository = attributes[:'repository']
|
|
157
155
|
end
|
|
158
156
|
|
|
159
|
-
if attributes.key?(:'
|
|
160
|
-
self.
|
|
161
|
-
else
|
|
162
|
-
self.hidden = false
|
|
157
|
+
if attributes.key?(:'pulp_created')
|
|
158
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
163
159
|
end
|
|
164
160
|
|
|
165
161
|
if attributes.key?(:'name')
|
|
@@ -172,18 +168,22 @@ module PulpContainerClient
|
|
|
172
168
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
173
169
|
end
|
|
174
170
|
|
|
175
|
-
if attributes.key?(:'repository')
|
|
176
|
-
self.repository = attributes[:'repository']
|
|
177
|
-
end
|
|
178
|
-
|
|
179
171
|
if attributes.key?(:'prn')
|
|
180
172
|
self.prn = attributes[:'prn']
|
|
181
173
|
end
|
|
182
174
|
|
|
183
|
-
if attributes.key?(:'
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
175
|
+
if attributes.key?(:'base_path')
|
|
176
|
+
self.base_path = attributes[:'base_path']
|
|
177
|
+
else
|
|
178
|
+
self.base_path = nil
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if attributes.key?(:'content_guard')
|
|
182
|
+
self.content_guard = attributes[:'content_guard']
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if attributes.key?(:'pulp_href')
|
|
186
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
187
187
|
end
|
|
188
188
|
|
|
189
189
|
if attributes.key?(:'remote')
|
|
@@ -216,14 +216,14 @@ module PulpContainerClient
|
|
|
216
216
|
def list_invalid_properties
|
|
217
217
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
218
218
|
invalid_properties = Array.new
|
|
219
|
-
if @base_path.nil?
|
|
220
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
221
|
-
end
|
|
222
|
-
|
|
223
219
|
if @name.nil?
|
|
224
220
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
225
221
|
end
|
|
226
222
|
|
|
223
|
+
if @base_path.nil?
|
|
224
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
225
|
+
end
|
|
226
|
+
|
|
227
227
|
if @remote.nil?
|
|
228
228
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
|
229
229
|
end
|
|
@@ -235,8 +235,8 @@ module PulpContainerClient
|
|
|
235
235
|
# @return true if the model is valid
|
|
236
236
|
def valid?
|
|
237
237
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
238
|
-
return false if @base_path.nil?
|
|
239
238
|
return false if @name.nil?
|
|
239
|
+
return false if @base_path.nil?
|
|
240
240
|
return false if @remote.nil?
|
|
241
241
|
true
|
|
242
242
|
end
|
|
@@ -246,17 +246,17 @@ module PulpContainerClient
|
|
|
246
246
|
def ==(o)
|
|
247
247
|
return true if self.equal?(o)
|
|
248
248
|
self.class == o.class &&
|
|
249
|
-
|
|
249
|
+
pulp_labels == o.pulp_labels &&
|
|
250
250
|
pulp_last_updated == o.pulp_last_updated &&
|
|
251
|
-
content_guard == o.content_guard &&
|
|
252
|
-
base_path == o.base_path &&
|
|
253
|
-
pulp_href == o.pulp_href &&
|
|
254
251
|
hidden == o.hidden &&
|
|
252
|
+
repository == o.repository &&
|
|
253
|
+
pulp_created == o.pulp_created &&
|
|
255
254
|
name == o.name &&
|
|
256
255
|
no_content_change_since == o.no_content_change_since &&
|
|
257
|
-
repository == o.repository &&
|
|
258
256
|
prn == o.prn &&
|
|
259
|
-
|
|
257
|
+
base_path == o.base_path &&
|
|
258
|
+
content_guard == o.content_guard &&
|
|
259
|
+
pulp_href == o.pulp_href &&
|
|
260
260
|
remote == o.remote &&
|
|
261
261
|
distributions == o.distributions &&
|
|
262
262
|
namespace == o.namespace &&
|
|
@@ -273,7 +273,7 @@ module PulpContainerClient
|
|
|
273
273
|
# Calculates hash code according to all attributes.
|
|
274
274
|
# @return [Integer] Hash code
|
|
275
275
|
def hash
|
|
276
|
-
[
|
|
276
|
+
[pulp_labels, pulp_last_updated, hidden, repository, pulp_created, name, no_content_change_since, prn, base_path, content_guard, pulp_href, remote, distributions, namespace, private, description].hash
|
|
277
277
|
end
|
|
278
278
|
|
|
279
279
|
# Builds the object from hash
|
|
@@ -16,28 +16,28 @@ 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
|
+
attr_accessor :pulp_labels
|
|
23
|
+
|
|
19
24
|
# An optional description.
|
|
20
25
|
attr_accessor :description
|
|
21
26
|
|
|
22
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
23
|
-
attr_accessor :retain_repo_versions
|
|
24
|
-
|
|
25
27
|
# A unique name for this repository.
|
|
26
28
|
attr_accessor :name
|
|
27
29
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
30
|
-
|
|
31
|
-
attr_accessor :pulp_labels
|
|
30
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
31
|
+
attr_accessor :retain_repo_versions
|
|
32
32
|
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
34
|
def self.attribute_map
|
|
35
35
|
{
|
|
36
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
|
36
38
|
:'description' => :'description',
|
|
37
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
38
39
|
:'name' => :'name',
|
|
39
|
-
:'
|
|
40
|
-
:'pulp_labels' => :'pulp_labels'
|
|
40
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -49,20 +49,20 @@ module PulpContainerClient
|
|
|
49
49
|
# Attribute type mapping.
|
|
50
50
|
def self.openapi_types
|
|
51
51
|
{
|
|
52
|
+
:'manifest_signing_service' => :'String',
|
|
53
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
52
54
|
:'description' => :'String',
|
|
53
|
-
:'retain_repo_versions' => :'Integer',
|
|
54
55
|
:'name' => :'String',
|
|
55
|
-
:'
|
|
56
|
-
:'pulp_labels' => :'Hash<String, String>'
|
|
56
|
+
:'retain_repo_versions' => :'Integer'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# List of attributes with nullable: true
|
|
61
61
|
def self.openapi_nullable
|
|
62
62
|
Set.new([
|
|
63
|
-
:'description',
|
|
64
|
-
:'retain_repo_versions',
|
|
65
63
|
:'manifest_signing_service',
|
|
64
|
+
:'description',
|
|
65
|
+
:'retain_repo_versions'
|
|
66
66
|
])
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -81,12 +81,18 @@ module PulpContainerClient
|
|
|
81
81
|
h[k.to_sym] = v
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
84
|
+
if attributes.key?(:'manifest_signing_service')
|
|
85
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
if attributes.key?(:'
|
|
89
|
-
|
|
88
|
+
if attributes.key?(:'pulp_labels')
|
|
89
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
90
|
+
self.pulp_labels = value
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'description')
|
|
95
|
+
self.description = attributes[:'description']
|
|
90
96
|
end
|
|
91
97
|
|
|
92
98
|
if attributes.key?(:'name')
|
|
@@ -95,14 +101,8 @@ module PulpContainerClient
|
|
|
95
101
|
self.name = nil
|
|
96
102
|
end
|
|
97
103
|
|
|
98
|
-
if attributes.key?(:'
|
|
99
|
-
self.
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
if attributes.key?(:'pulp_labels')
|
|
103
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
104
|
-
self.pulp_labels = value
|
|
105
|
-
end
|
|
104
|
+
if attributes.key?(:'retain_repo_versions')
|
|
105
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
106
106
|
end
|
|
107
107
|
end
|
|
108
108
|
|
|
@@ -115,10 +115,6 @@ module PulpContainerClient
|
|
|
115
115
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
119
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
120
|
-
end
|
|
121
|
-
|
|
122
118
|
if @name.nil?
|
|
123
119
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
124
120
|
end
|
|
@@ -127,6 +123,10 @@ module PulpContainerClient
|
|
|
127
123
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
128
124
|
end
|
|
129
125
|
|
|
126
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
127
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
128
|
+
end
|
|
129
|
+
|
|
130
130
|
invalid_properties
|
|
131
131
|
end
|
|
132
132
|
|
|
@@ -135,9 +135,9 @@ module PulpContainerClient
|
|
|
135
135
|
def valid?
|
|
136
136
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
137
137
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
138
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
139
138
|
return false if @name.nil?
|
|
140
139
|
return false if @name.to_s.length < 1
|
|
140
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
141
141
|
true
|
|
142
142
|
end
|
|
143
143
|
|
|
@@ -151,16 +151,6 @@ module PulpContainerClient
|
|
|
151
151
|
@description = description
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
-
# Custom attribute writer method with validation
|
|
155
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
156
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
157
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
158
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
@retain_repo_versions = retain_repo_versions
|
|
162
|
-
end
|
|
163
|
-
|
|
164
154
|
# Custom attribute writer method with validation
|
|
165
155
|
# @param [Object] name Value to be assigned
|
|
166
156
|
def name=(name)
|
|
@@ -175,16 +165,26 @@ module PulpContainerClient
|
|
|
175
165
|
@name = name
|
|
176
166
|
end
|
|
177
167
|
|
|
168
|
+
# Custom attribute writer method with validation
|
|
169
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
170
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
171
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
172
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
@retain_repo_versions = retain_repo_versions
|
|
176
|
+
end
|
|
177
|
+
|
|
178
178
|
# Checks equality by comparing each attribute.
|
|
179
179
|
# @param [Object] Object to be compared
|
|
180
180
|
def ==(o)
|
|
181
181
|
return true if self.equal?(o)
|
|
182
182
|
self.class == o.class &&
|
|
183
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
184
|
+
pulp_labels == o.pulp_labels &&
|
|
183
185
|
description == o.description &&
|
|
184
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
185
186
|
name == o.name &&
|
|
186
|
-
|
|
187
|
-
pulp_labels == o.pulp_labels
|
|
187
|
+
retain_repo_versions == o.retain_repo_versions
|
|
188
188
|
end
|
|
189
189
|
|
|
190
190
|
# @see the `==` method
|
|
@@ -196,7 +196,7 @@ module PulpContainerClient
|
|
|
196
196
|
# Calculates hash code according to all attributes.
|
|
197
197
|
# @return [Integer] Hash code
|
|
198
198
|
def hash
|
|
199
|
-
[
|
|
199
|
+
[manifest_signing_service, pulp_labels, description, name, retain_repo_versions].hash
|
|
200
200
|
end
|
|
201
201
|
|
|
202
202
|
# Builds the object from hash
|
|
@@ -16,21 +16,23 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# A reference to an associated signing service.
|
|
20
|
+
attr_accessor :manifest_signing_service
|
|
21
|
+
|
|
22
|
+
attr_accessor :pulp_labels
|
|
21
23
|
|
|
22
24
|
# 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.
|
|
23
25
|
attr_accessor :pulp_last_updated
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
attr_accessor :description
|
|
27
|
+
attr_accessor :versions_href
|
|
27
28
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
29
|
+
# Timestamp of creation.
|
|
30
|
+
attr_accessor :pulp_created
|
|
30
31
|
|
|
31
|
-
attr_accessor :
|
|
32
|
+
attr_accessor :latest_version_href
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
# An optional description.
|
|
35
|
+
attr_accessor :description
|
|
34
36
|
|
|
35
37
|
# A unique name for this repository.
|
|
36
38
|
attr_accessor :name
|
|
@@ -38,27 +40,25 @@ module PulpContainerClient
|
|
|
38
40
|
# The Pulp Resource Name (PRN).
|
|
39
41
|
attr_accessor :prn
|
|
40
42
|
|
|
41
|
-
#
|
|
42
|
-
attr_accessor :
|
|
43
|
-
|
|
44
|
-
attr_accessor :latest_version_href
|
|
43
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
44
|
+
attr_accessor :retain_repo_versions
|
|
45
45
|
|
|
46
|
-
attr_accessor :
|
|
46
|
+
attr_accessor :pulp_href
|
|
47
47
|
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
49
|
def self.attribute_map
|
|
50
50
|
{
|
|
51
|
-
:'
|
|
51
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
|
52
53
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
53
|
-
:'description' => :'description',
|
|
54
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
55
|
-
:'pulp_href' => :'pulp_href',
|
|
56
54
|
:'versions_href' => :'versions_href',
|
|
55
|
+
:'pulp_created' => :'pulp_created',
|
|
56
|
+
:'latest_version_href' => :'latest_version_href',
|
|
57
|
+
:'description' => :'description',
|
|
57
58
|
:'name' => :'name',
|
|
58
59
|
:'prn' => :'prn',
|
|
59
|
-
:'
|
|
60
|
-
:'
|
|
61
|
-
:'pulp_labels' => :'pulp_labels'
|
|
60
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
61
|
+
:'pulp_href' => :'pulp_href'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -70,26 +70,26 @@ module PulpContainerClient
|
|
|
70
70
|
# Attribute type mapping.
|
|
71
71
|
def self.openapi_types
|
|
72
72
|
{
|
|
73
|
-
:'
|
|
73
|
+
:'manifest_signing_service' => :'String',
|
|
74
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
74
75
|
:'pulp_last_updated' => :'Time',
|
|
75
|
-
:'description' => :'String',
|
|
76
|
-
:'retain_repo_versions' => :'Integer',
|
|
77
|
-
:'pulp_href' => :'String',
|
|
78
76
|
:'versions_href' => :'String',
|
|
77
|
+
:'pulp_created' => :'Time',
|
|
78
|
+
:'latest_version_href' => :'String',
|
|
79
|
+
:'description' => :'String',
|
|
79
80
|
:'name' => :'String',
|
|
80
81
|
:'prn' => :'String',
|
|
81
|
-
:'
|
|
82
|
-
:'
|
|
83
|
-
:'pulp_labels' => :'Hash<String, String>'
|
|
82
|
+
:'retain_repo_versions' => :'Integer',
|
|
83
|
+
:'pulp_href' => :'String'
|
|
84
84
|
}
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
# List of attributes with nullable: true
|
|
88
88
|
def self.openapi_nullable
|
|
89
89
|
Set.new([
|
|
90
|
+
:'manifest_signing_service',
|
|
90
91
|
:'description',
|
|
91
92
|
:'retain_repo_versions',
|
|
92
|
-
:'manifest_signing_service',
|
|
93
93
|
])
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -108,28 +108,34 @@ module PulpContainerClient
|
|
|
108
108
|
h[k.to_sym] = v
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
111
|
+
if attributes.key?(:'manifest_signing_service')
|
|
112
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'pulp_labels')
|
|
116
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
117
|
+
self.pulp_labels = value
|
|
118
|
+
end
|
|
113
119
|
end
|
|
114
120
|
|
|
115
121
|
if attributes.key?(:'pulp_last_updated')
|
|
116
122
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
117
123
|
end
|
|
118
124
|
|
|
119
|
-
if attributes.key?(:'
|
|
120
|
-
self.
|
|
125
|
+
if attributes.key?(:'versions_href')
|
|
126
|
+
self.versions_href = attributes[:'versions_href']
|
|
121
127
|
end
|
|
122
128
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
129
|
+
if attributes.key?(:'pulp_created')
|
|
130
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
125
131
|
end
|
|
126
132
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
133
|
+
if attributes.key?(:'latest_version_href')
|
|
134
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
129
135
|
end
|
|
130
136
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
137
|
+
if attributes.key?(:'description')
|
|
138
|
+
self.description = attributes[:'description']
|
|
133
139
|
end
|
|
134
140
|
|
|
135
141
|
if attributes.key?(:'name')
|
|
@@ -142,18 +148,12 @@ module PulpContainerClient
|
|
|
142
148
|
self.prn = attributes[:'prn']
|
|
143
149
|
end
|
|
144
150
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if attributes.key?(:'latest_version_href')
|
|
150
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
|
151
|
+
if attributes.key?(:'retain_repo_versions')
|
|
152
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
151
153
|
end
|
|
152
154
|
|
|
153
|
-
if attributes.key?(:'
|
|
154
|
-
|
|
155
|
-
self.pulp_labels = value
|
|
156
|
-
end
|
|
155
|
+
if attributes.key?(:'pulp_href')
|
|
156
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
157
157
|
end
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -162,14 +162,14 @@ module PulpContainerClient
|
|
|
162
162
|
def list_invalid_properties
|
|
163
163
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
164
164
|
invalid_properties = Array.new
|
|
165
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
166
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
167
|
-
end
|
|
168
|
-
|
|
169
165
|
if @name.nil?
|
|
170
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
171
167
|
end
|
|
172
168
|
|
|
169
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
170
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
171
|
+
end
|
|
172
|
+
|
|
173
173
|
invalid_properties
|
|
174
174
|
end
|
|
175
175
|
|
|
@@ -177,8 +177,8 @@ module PulpContainerClient
|
|
|
177
177
|
# @return true if the model is valid
|
|
178
178
|
def valid?
|
|
179
179
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
180
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
181
180
|
return false if @name.nil?
|
|
181
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
182
182
|
true
|
|
183
183
|
end
|
|
184
184
|
|
|
@@ -197,17 +197,17 @@ module PulpContainerClient
|
|
|
197
197
|
def ==(o)
|
|
198
198
|
return true if self.equal?(o)
|
|
199
199
|
self.class == o.class &&
|
|
200
|
-
|
|
200
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
201
|
+
pulp_labels == o.pulp_labels &&
|
|
201
202
|
pulp_last_updated == o.pulp_last_updated &&
|
|
202
|
-
description == o.description &&
|
|
203
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
204
|
-
pulp_href == o.pulp_href &&
|
|
205
203
|
versions_href == o.versions_href &&
|
|
204
|
+
pulp_created == o.pulp_created &&
|
|
205
|
+
latest_version_href == o.latest_version_href &&
|
|
206
|
+
description == o.description &&
|
|
206
207
|
name == o.name &&
|
|
207
208
|
prn == o.prn &&
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
pulp_labels == o.pulp_labels
|
|
209
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
210
|
+
pulp_href == o.pulp_href
|
|
211
211
|
end
|
|
212
212
|
|
|
213
213
|
# @see the `==` method
|
|
@@ -219,7 +219,7 @@ module PulpContainerClient
|
|
|
219
219
|
# Calculates hash code according to all attributes.
|
|
220
220
|
# @return [Integer] Hash code
|
|
221
221
|
def hash
|
|
222
|
-
[
|
|
222
|
+
[manifest_signing_service, pulp_labels, pulp_last_updated, versions_href, pulp_created, latest_version_href, description, name, prn, retain_repo_versions, pulp_href].hash
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# Builds the object from hash
|