pulp_container_client 2.22.2 → 2.22.4
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 +6 -6
- data/docs/ContainerContainerDistributionResponse.md +14 -14
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +51 -51
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +66 -66
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +51 -51
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +66 -66
- data/lib/pulp_container_client/models/container_container_push_repository.rb +33 -33
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -60
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +42 -42
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +42 -42
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +33 -33
- 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 +4 -4
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- metadata +61 -61
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
|
@@ -15,36 +15,36 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class ContainerContainerPullThroughDistributionResponse
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
20
|
-
|
|
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.
|
|
22
|
-
attr_accessor :pulp_last_updated
|
|
18
|
+
# Whether this distribution should be shown in the content app.
|
|
19
|
+
attr_accessor :hidden
|
|
23
20
|
|
|
24
21
|
attr_accessor :pulp_labels
|
|
25
22
|
|
|
26
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
27
|
-
attr_accessor :content_guard
|
|
28
|
-
|
|
29
23
|
# Timestamp of creation.
|
|
30
24
|
attr_accessor :pulp_created
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
attr_accessor :base_path
|
|
26
|
+
attr_accessor :pulp_href
|
|
34
27
|
|
|
35
|
-
#
|
|
36
|
-
attr_accessor :
|
|
28
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
29
|
+
attr_accessor :content_guard
|
|
37
30
|
|
|
38
|
-
#
|
|
39
|
-
attr_accessor :
|
|
31
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
32
|
+
attr_accessor :repository
|
|
40
33
|
|
|
41
|
-
|
|
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
|
|
42
36
|
|
|
43
37
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
44
38
|
attr_accessor :name
|
|
45
39
|
|
|
46
|
-
# Timestamp
|
|
47
|
-
attr_accessor :
|
|
40
|
+
# 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.
|
|
41
|
+
attr_accessor :pulp_last_updated
|
|
42
|
+
|
|
43
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
44
|
+
attr_accessor :base_path
|
|
45
|
+
|
|
46
|
+
# The Pulp Resource Name (PRN).
|
|
47
|
+
attr_accessor :prn
|
|
48
48
|
|
|
49
49
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
50
50
|
attr_accessor :remote
|
|
@@ -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
|
-
:'
|
|
68
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
67
|
+
:'hidden' => :'hidden',
|
|
69
68
|
:'pulp_labels' => :'pulp_labels',
|
|
70
|
-
:'content_guard' => :'content_guard',
|
|
71
69
|
:'pulp_created' => :'pulp_created',
|
|
72
|
-
:'base_path' => :'base_path',
|
|
73
|
-
:'prn' => :'prn',
|
|
74
|
-
:'hidden' => :'hidden',
|
|
75
70
|
:'pulp_href' => :'pulp_href',
|
|
76
|
-
:'
|
|
71
|
+
:'content_guard' => :'content_guard',
|
|
72
|
+
:'repository' => :'repository',
|
|
77
73
|
:'no_content_change_since' => :'no_content_change_since',
|
|
74
|
+
:'name' => :'name',
|
|
75
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
76
|
+
:'base_path' => :'base_path',
|
|
77
|
+
:'prn' => :'prn',
|
|
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
|
-
:'
|
|
90
|
-
:'pulp_last_updated' => :'DateTime',
|
|
89
|
+
:'hidden' => :'Boolean',
|
|
91
90
|
:'pulp_labels' => :'Hash<String, String>',
|
|
92
|
-
:'content_guard' => :'String',
|
|
93
91
|
:'pulp_created' => :'DateTime',
|
|
94
|
-
:'base_path' => :'String',
|
|
95
|
-
:'prn' => :'String',
|
|
96
|
-
:'hidden' => :'Boolean',
|
|
97
92
|
:'pulp_href' => :'String',
|
|
98
|
-
:'
|
|
93
|
+
:'content_guard' => :'String',
|
|
94
|
+
:'repository' => :'String',
|
|
99
95
|
:'no_content_change_since' => :'String',
|
|
96
|
+
:'name' => :'String',
|
|
97
|
+
:'pulp_last_updated' => :'DateTime',
|
|
98
|
+
:'base_path' => :'String',
|
|
99
|
+
:'prn' => :'String',
|
|
100
100
|
:'remote' => :'String',
|
|
101
101
|
:'distributions' => :'Array<String>',
|
|
102
102
|
:'namespace' => :'String',
|
|
@@ -128,12 +128,10 @@ module PulpContainerClient
|
|
|
128
128
|
h[k.to_sym] = v
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if attributes.key?(:'pulp_last_updated')
|
|
136
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
131
|
+
if attributes.key?(:'hidden')
|
|
132
|
+
self.hidden = attributes[:'hidden']
|
|
133
|
+
else
|
|
134
|
+
self.hidden = false
|
|
137
135
|
end
|
|
138
136
|
|
|
139
137
|
if attributes.key?(:'pulp_labels')
|
|
@@ -142,38 +140,40 @@ module PulpContainerClient
|
|
|
142
140
|
end
|
|
143
141
|
end
|
|
144
142
|
|
|
145
|
-
if attributes.key?(:'content_guard')
|
|
146
|
-
self.content_guard = attributes[:'content_guard']
|
|
147
|
-
end
|
|
148
|
-
|
|
149
143
|
if attributes.key?(:'pulp_created')
|
|
150
144
|
self.pulp_created = attributes[:'pulp_created']
|
|
151
145
|
end
|
|
152
146
|
|
|
153
|
-
if attributes.key?(:'
|
|
154
|
-
self.
|
|
147
|
+
if attributes.key?(:'pulp_href')
|
|
148
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
155
149
|
end
|
|
156
150
|
|
|
157
|
-
if attributes.key?(:'
|
|
158
|
-
self.
|
|
151
|
+
if attributes.key?(:'content_guard')
|
|
152
|
+
self.content_guard = attributes[:'content_guard']
|
|
159
153
|
end
|
|
160
154
|
|
|
161
|
-
if attributes.key?(:'
|
|
162
|
-
self.
|
|
163
|
-
else
|
|
164
|
-
self.hidden = false
|
|
155
|
+
if attributes.key?(:'repository')
|
|
156
|
+
self.repository = attributes[:'repository']
|
|
165
157
|
end
|
|
166
158
|
|
|
167
|
-
if attributes.key?(:'
|
|
168
|
-
self.
|
|
159
|
+
if attributes.key?(:'no_content_change_since')
|
|
160
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
169
161
|
end
|
|
170
162
|
|
|
171
163
|
if attributes.key?(:'name')
|
|
172
164
|
self.name = attributes[:'name']
|
|
173
165
|
end
|
|
174
166
|
|
|
175
|
-
if attributes.key?(:'
|
|
176
|
-
self.
|
|
167
|
+
if attributes.key?(:'pulp_last_updated')
|
|
168
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'base_path')
|
|
172
|
+
self.base_path = attributes[:'base_path']
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'prn')
|
|
176
|
+
self.prn = attributes[:'prn']
|
|
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
|
-
|
|
236
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
235
|
+
hidden == o.hidden &&
|
|
237
236
|
pulp_labels == o.pulp_labels &&
|
|
238
|
-
content_guard == o.content_guard &&
|
|
239
237
|
pulp_created == o.pulp_created &&
|
|
240
|
-
base_path == o.base_path &&
|
|
241
|
-
prn == o.prn &&
|
|
242
|
-
hidden == o.hidden &&
|
|
243
238
|
pulp_href == o.pulp_href &&
|
|
244
|
-
|
|
239
|
+
content_guard == o.content_guard &&
|
|
240
|
+
repository == o.repository &&
|
|
245
241
|
no_content_change_since == o.no_content_change_since &&
|
|
242
|
+
name == o.name &&
|
|
243
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
244
|
+
base_path == o.base_path &&
|
|
245
|
+
prn == o.prn &&
|
|
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
|
+
[hidden, pulp_labels, pulp_created, pulp_href, content_guard, repository, no_content_change_since, name, pulp_last_updated, base_path, prn, remote, distributions, namespace, private, description].hash
|
|
263
263
|
end
|
|
264
264
|
|
|
265
265
|
# Builds the object from hash
|
|
@@ -17,8 +17,8 @@ module PulpContainerClient
|
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
18
|
attr_accessor :pulp_labels
|
|
19
19
|
|
|
20
|
-
#
|
|
21
|
-
attr_accessor :
|
|
20
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
21
|
+
attr_accessor :retain_repo_versions
|
|
22
22
|
|
|
23
23
|
# A unique name for this repository.
|
|
24
24
|
attr_accessor :name
|
|
@@ -26,17 +26,17 @@ module PulpContainerClient
|
|
|
26
26
|
# A reference to an associated signing service.
|
|
27
27
|
attr_accessor :manifest_signing_service
|
|
28
28
|
|
|
29
|
-
#
|
|
30
|
-
attr_accessor :
|
|
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
35
|
:'pulp_labels' => :'pulp_labels',
|
|
36
|
-
:'
|
|
36
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
37
37
|
:'name' => :'name',
|
|
38
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
39
|
-
:'
|
|
39
|
+
:'description' => :'description'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
@@ -44,19 +44,19 @@ module PulpContainerClient
|
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
46
|
:'pulp_labels' => :'Hash<String, String>',
|
|
47
|
-
:'
|
|
47
|
+
:'retain_repo_versions' => :'Integer',
|
|
48
48
|
:'name' => :'String',
|
|
49
49
|
:'manifest_signing_service' => :'String',
|
|
50
|
-
:'
|
|
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
|
-
:'
|
|
57
|
+
:'retain_repo_versions',
|
|
58
58
|
:'manifest_signing_service',
|
|
59
|
-
:'
|
|
59
|
+
:'description'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -81,8 +81,8 @@ module PulpContainerClient
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
84
|
+
if attributes.key?(:'retain_repo_versions')
|
|
85
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
if attributes.key?(:'name')
|
|
@@ -93,8 +93,8 @@ module PulpContainerClient
|
|
|
93
93
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
96
|
+
if attributes.key?(:'description')
|
|
97
|
+
self.description = attributes[:'description']
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -102,8 +102,8 @@ 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 !@
|
|
106
|
-
invalid_properties.push('invalid value for "
|
|
105
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
106
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
if @name.nil?
|
|
@@ -114,8 +114,8 @@ module PulpContainerClient
|
|
|
114
114
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
-
if !@
|
|
118
|
-
invalid_properties.push('invalid value for "
|
|
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
119
|
end
|
|
120
120
|
|
|
121
121
|
invalid_properties
|
|
@@ -124,21 +124,21 @@ module PulpContainerClient
|
|
|
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 !@
|
|
127
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
128
128
|
return false if @name.nil?
|
|
129
129
|
return false if @name.to_s.length < 1
|
|
130
|
-
return false if !@
|
|
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, 'invalid value for "
|
|
135
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
136
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
137
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
138
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
-
@
|
|
141
|
+
@retain_repo_versions = retain_repo_versions
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
# Custom attribute writer method with validation
|
|
@@ -156,13 +156,13 @@ module PulpContainerClient
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# Custom attribute writer method with validation
|
|
159
|
-
# @param [Object]
|
|
160
|
-
def
|
|
161
|
-
if !
|
|
162
|
-
fail ArgumentError, 'invalid value for "
|
|
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.
|
|
@@ -171,10 +171,10 @@ module PulpContainerClient
|
|
|
171
171
|
return true if self.equal?(o)
|
|
172
172
|
self.class == o.class &&
|
|
173
173
|
pulp_labels == o.pulp_labels &&
|
|
174
|
-
|
|
174
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
175
175
|
name == o.name &&
|
|
176
176
|
manifest_signing_service == o.manifest_signing_service &&
|
|
177
|
-
|
|
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
|
-
[pulp_labels,
|
|
189
|
+
[pulp_labels, retain_repo_versions, name, manifest_signing_service, 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
|
-
attr_accessor :versions_href
|
|
19
|
-
|
|
20
|
-
# 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.
|
|
21
|
-
attr_accessor :pulp_last_updated
|
|
22
|
-
|
|
23
18
|
attr_accessor :pulp_labels
|
|
24
19
|
|
|
20
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
21
|
+
attr_accessor :retain_repo_versions
|
|
22
|
+
|
|
25
23
|
# Timestamp of creation.
|
|
26
24
|
attr_accessor :pulp_created
|
|
27
25
|
|
|
28
|
-
attr_accessor :
|
|
29
|
-
|
|
30
|
-
# The Pulp Resource Name (PRN).
|
|
31
|
-
attr_accessor :prn
|
|
26
|
+
attr_accessor :pulp_href
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
attr_accessor :description
|
|
28
|
+
attr_accessor :latest_version_href
|
|
35
29
|
|
|
36
|
-
attr_accessor :
|
|
30
|
+
attr_accessor :versions_href
|
|
37
31
|
|
|
38
32
|
# A unique name for this repository.
|
|
39
33
|
attr_accessor :name
|
|
40
34
|
|
|
35
|
+
# 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.
|
|
36
|
+
attr_accessor :pulp_last_updated
|
|
37
|
+
|
|
41
38
|
# A reference to an associated signing service.
|
|
42
39
|
attr_accessor :manifest_signing_service
|
|
43
40
|
|
|
44
|
-
#
|
|
45
|
-
attr_accessor :
|
|
41
|
+
# The Pulp Resource Name (PRN).
|
|
42
|
+
attr_accessor :prn
|
|
43
|
+
|
|
44
|
+
# An optional description.
|
|
45
|
+
attr_accessor :description
|
|
46
46
|
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
48
|
def self.attribute_map
|
|
49
49
|
{
|
|
50
|
-
:'versions_href' => :'versions_href',
|
|
51
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
52
50
|
:'pulp_labels' => :'pulp_labels',
|
|
51
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
53
52
|
:'pulp_created' => :'pulp_created',
|
|
54
|
-
:'latest_version_href' => :'latest_version_href',
|
|
55
|
-
:'prn' => :'prn',
|
|
56
|
-
:'description' => :'description',
|
|
57
53
|
:'pulp_href' => :'pulp_href',
|
|
54
|
+
:'latest_version_href' => :'latest_version_href',
|
|
55
|
+
:'versions_href' => :'versions_href',
|
|
58
56
|
:'name' => :'name',
|
|
57
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
59
58
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
60
|
-
:'
|
|
59
|
+
:'prn' => :'prn',
|
|
60
|
+
:'description' => :'description'
|
|
61
61
|
}
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
# Attribute type mapping.
|
|
65
65
|
def self.openapi_types
|
|
66
66
|
{
|
|
67
|
-
:'versions_href' => :'String',
|
|
68
|
-
:'pulp_last_updated' => :'DateTime',
|
|
69
67
|
:'pulp_labels' => :'Hash<String, String>',
|
|
68
|
+
:'retain_repo_versions' => :'Integer',
|
|
70
69
|
:'pulp_created' => :'DateTime',
|
|
71
|
-
:'latest_version_href' => :'String',
|
|
72
|
-
:'prn' => :'String',
|
|
73
|
-
:'description' => :'String',
|
|
74
70
|
:'pulp_href' => :'String',
|
|
71
|
+
:'latest_version_href' => :'String',
|
|
72
|
+
:'versions_href' => :'String',
|
|
75
73
|
:'name' => :'String',
|
|
74
|
+
:'pulp_last_updated' => :'DateTime',
|
|
76
75
|
:'manifest_signing_service' => :'String',
|
|
77
|
-
:'
|
|
76
|
+
:'prn' => :'String',
|
|
77
|
+
:'description' => :'String'
|
|
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
|
-
:'
|
|
84
|
+
:'retain_repo_versions',
|
|
85
85
|
:'manifest_signing_service',
|
|
86
|
-
:'
|
|
86
|
+
:'description'
|
|
87
87
|
])
|
|
88
88
|
end
|
|
89
89
|
|
|
@@ -102,50 +102,50 @@ module PulpContainerClient
|
|
|
102
102
|
h[k.to_sym] = v
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
if attributes.key?(:'versions_href')
|
|
106
|
-
self.versions_href = attributes[:'versions_href']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'pulp_last_updated')
|
|
110
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
111
|
-
end
|
|
112
|
-
|
|
113
105
|
if attributes.key?(:'pulp_labels')
|
|
114
106
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
115
107
|
self.pulp_labels = value
|
|
116
108
|
end
|
|
117
109
|
end
|
|
118
110
|
|
|
119
|
-
if attributes.key?(:'
|
|
120
|
-
self.
|
|
111
|
+
if attributes.key?(:'retain_repo_versions')
|
|
112
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
121
113
|
end
|
|
122
114
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
115
|
+
if attributes.key?(:'pulp_created')
|
|
116
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
125
117
|
end
|
|
126
118
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
119
|
+
if attributes.key?(:'pulp_href')
|
|
120
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
129
121
|
end
|
|
130
122
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
123
|
+
if attributes.key?(:'latest_version_href')
|
|
124
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
133
125
|
end
|
|
134
126
|
|
|
135
|
-
if attributes.key?(:'
|
|
136
|
-
self.
|
|
127
|
+
if attributes.key?(:'versions_href')
|
|
128
|
+
self.versions_href = attributes[:'versions_href']
|
|
137
129
|
end
|
|
138
130
|
|
|
139
131
|
if attributes.key?(:'name')
|
|
140
132
|
self.name = attributes[:'name']
|
|
141
133
|
end
|
|
142
134
|
|
|
135
|
+
if attributes.key?(:'pulp_last_updated')
|
|
136
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
137
|
+
end
|
|
138
|
+
|
|
143
139
|
if attributes.key?(:'manifest_signing_service')
|
|
144
140
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
145
141
|
end
|
|
146
142
|
|
|
147
|
-
if attributes.key?(:'
|
|
148
|
-
self.
|
|
143
|
+
if attributes.key?(:'prn')
|
|
144
|
+
self.prn = attributes[:'prn']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'description')
|
|
148
|
+
self.description = attributes[:'description']
|
|
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 @name.nil?
|
|
157
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
158
|
-
end
|
|
159
|
-
|
|
160
156
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
161
157
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
162
158
|
end
|
|
163
159
|
|
|
160
|
+
if @name.nil?
|
|
161
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
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 @name.nil?
|
|
171
170
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
171
|
+
return false if @name.nil?
|
|
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
|
-
versions_href == o.versions_href &&
|
|
191
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
192
190
|
pulp_labels == o.pulp_labels &&
|
|
191
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
193
192
|
pulp_created == o.pulp_created &&
|
|
194
|
-
latest_version_href == o.latest_version_href &&
|
|
195
|
-
prn == o.prn &&
|
|
196
|
-
description == o.description &&
|
|
197
193
|
pulp_href == o.pulp_href &&
|
|
194
|
+
latest_version_href == o.latest_version_href &&
|
|
195
|
+
versions_href == o.versions_href &&
|
|
198
196
|
name == o.name &&
|
|
197
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
199
198
|
manifest_signing_service == o.manifest_signing_service &&
|
|
200
|
-
|
|
199
|
+
prn == o.prn &&
|
|
200
|
+
description == o.description
|
|
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
|
+
[pulp_labels, retain_repo_versions, pulp_created, pulp_href, latest_version_href, versions_href, name, pulp_last_updated, manifest_signing_service, prn, description].hash
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
# Builds the object from hash
|