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