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