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