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