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