pulp_container_client 2.19.14 → 2.19.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +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/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +22 -22
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +22 -22
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +39 -39
- 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 +50 -50
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +22 -22
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +22 -22
- 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 +6 -6
- data/spec/models/container_container_distribution_spec.rb +3 -3
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_spec.rb +3 -3
- 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 +3 -3
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +60 -60
|
@@ -15,21 +15,21 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistributionResponse
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
+
attr_accessor :content_guard
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
22
|
+
attr_accessor :pulp_last_updated
|
|
23
23
|
|
|
24
24
|
attr_accessor :pulp_labels
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
attr_accessor :repository
|
|
26
|
+
attr_accessor :pulp_href
|
|
28
27
|
|
|
29
|
-
#
|
|
30
|
-
attr_accessor :
|
|
28
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
29
|
+
attr_accessor :base_path
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
# Timestamp of creation.
|
|
32
|
+
attr_accessor :pulp_created
|
|
33
33
|
|
|
34
34
|
# Whether this distribution should be shown in the content app.
|
|
35
35
|
attr_accessor :hidden
|
|
@@ -37,8 +37,8 @@ module PulpContainerClient
|
|
|
37
37
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
38
38
|
attr_accessor :name
|
|
39
39
|
|
|
40
|
-
#
|
|
41
|
-
attr_accessor :
|
|
40
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
41
|
+
attr_accessor :repository
|
|
42
42
|
|
|
43
43
|
# RepositoryVersion to be served
|
|
44
44
|
attr_accessor :repository_version
|
|
@@ -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
|
-
:'
|
|
65
|
-
:'base_path' => :'base_path',
|
|
66
|
-
:'pulp_labels' => :'pulp_labels',
|
|
67
|
-
:'repository' => :'repository',
|
|
64
|
+
:'content_guard' => :'content_guard',
|
|
68
65
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
66
|
+
:'pulp_labels' => :'pulp_labels',
|
|
69
67
|
:'pulp_href' => :'pulp_href',
|
|
68
|
+
:'base_path' => :'base_path',
|
|
69
|
+
:'pulp_created' => :'pulp_created',
|
|
70
70
|
:'hidden' => :'hidden',
|
|
71
71
|
:'name' => :'name',
|
|
72
|
-
:'
|
|
72
|
+
:'repository' => :'repository',
|
|
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
|
-
:'
|
|
86
|
-
:'base_path' => :'String',
|
|
87
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
88
|
-
:'repository' => :'String',
|
|
85
|
+
:'content_guard' => :'String',
|
|
89
86
|
:'pulp_last_updated' => :'DateTime',
|
|
87
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
90
88
|
:'pulp_href' => :'String',
|
|
89
|
+
:'base_path' => :'String',
|
|
90
|
+
:'pulp_created' => :'DateTime',
|
|
91
91
|
:'hidden' => :'Boolean',
|
|
92
92
|
:'name' => :'String',
|
|
93
|
-
:'
|
|
93
|
+
:'repository' => :'String',
|
|
94
94
|
:'repository_version' => :'String',
|
|
95
95
|
:'registry_path' => :'String',
|
|
96
96
|
:'remote' => :'String',
|
|
@@ -124,12 +124,12 @@ module PulpContainerClient
|
|
|
124
124
|
h[k.to_sym] = v
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
127
|
+
if attributes.key?(:'content_guard')
|
|
128
|
+
self.content_guard = attributes[:'content_guard']
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
131
|
+
if attributes.key?(:'pulp_last_updated')
|
|
132
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
if attributes.key?(:'pulp_labels')
|
|
@@ -138,16 +138,16 @@ module PulpContainerClient
|
|
|
138
138
|
end
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
-
if attributes.key?(:'
|
|
142
|
-
self.
|
|
141
|
+
if attributes.key?(:'pulp_href')
|
|
142
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
145
|
+
if attributes.key?(:'base_path')
|
|
146
|
+
self.base_path = attributes[:'base_path']
|
|
147
147
|
end
|
|
148
148
|
|
|
149
|
-
if attributes.key?(:'
|
|
150
|
-
self.
|
|
149
|
+
if attributes.key?(:'pulp_created')
|
|
150
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
151
151
|
end
|
|
152
152
|
|
|
153
153
|
if attributes.key?(:'hidden')
|
|
@@ -160,8 +160,8 @@ module PulpContainerClient
|
|
|
160
160
|
self.name = attributes[:'name']
|
|
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
167
|
if attributes.key?(:'repository_version')
|
|
@@ -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
|
-
|
|
221
|
-
base_path == o.base_path &&
|
|
222
|
-
pulp_labels == o.pulp_labels &&
|
|
223
|
-
repository == o.repository &&
|
|
220
|
+
content_guard == o.content_guard &&
|
|
224
221
|
pulp_last_updated == o.pulp_last_updated &&
|
|
222
|
+
pulp_labels == o.pulp_labels &&
|
|
225
223
|
pulp_href == o.pulp_href &&
|
|
224
|
+
base_path == o.base_path &&
|
|
225
|
+
pulp_created == o.pulp_created &&
|
|
226
226
|
hidden == o.hidden &&
|
|
227
227
|
name == o.name &&
|
|
228
|
-
|
|
228
|
+
repository == o.repository &&
|
|
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
|
+
[content_guard, pulp_last_updated, pulp_labels, pulp_href, base_path, pulp_created, hidden, name, repository, repository_version, registry_path, remote, namespace, private, description].hash
|
|
247
247
|
end
|
|
248
248
|
|
|
249
249
|
# Builds the object from hash
|
|
@@ -15,13 +15,13 @@ 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
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
+
attr_accessor :content_guard
|
|
20
20
|
|
|
21
21
|
attr_accessor :pulp_labels
|
|
22
22
|
|
|
23
|
-
# The
|
|
24
|
-
attr_accessor :
|
|
23
|
+
# The registry path exposed by this pull-through distribution.
|
|
24
|
+
attr_accessor :base_path
|
|
25
25
|
|
|
26
26
|
# Whether this distribution should be shown in the content app.
|
|
27
27
|
attr_accessor :hidden
|
|
@@ -29,8 +29,8 @@ module PulpContainerClient
|
|
|
29
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
30
30
|
attr_accessor :name
|
|
31
31
|
|
|
32
|
-
#
|
|
33
|
-
attr_accessor :
|
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
33
|
+
attr_accessor :repository
|
|
34
34
|
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
36
|
attr_accessor :remote
|
|
@@ -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
|
-
:'
|
|
50
|
+
:'content_guard' => :'content_guard',
|
|
51
51
|
:'pulp_labels' => :'pulp_labels',
|
|
52
|
-
:'
|
|
52
|
+
:'base_path' => :'base_path',
|
|
53
53
|
:'hidden' => :'hidden',
|
|
54
54
|
:'name' => :'name',
|
|
55
|
-
:'
|
|
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
|
-
:'
|
|
66
|
+
:'content_guard' => :'String',
|
|
67
67
|
:'pulp_labels' => :'Hash<String, String>',
|
|
68
|
-
:'
|
|
68
|
+
:'base_path' => :'String',
|
|
69
69
|
:'hidden' => :'Boolean',
|
|
70
70
|
:'name' => :'String',
|
|
71
|
-
:'
|
|
71
|
+
:'repository' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,8 +99,8 @@ module PulpContainerClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'
|
|
103
|
-
self.
|
|
102
|
+
if attributes.key?(:'content_guard')
|
|
103
|
+
self.content_guard = attributes[:'content_guard']
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
if attributes.key?(:'pulp_labels')
|
|
@@ -109,8 +109,8 @@ module PulpContainerClient
|
|
|
109
109
|
end
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
self.
|
|
112
|
+
if attributes.key?(:'base_path')
|
|
113
|
+
self.base_path = attributes[:'base_path']
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
if attributes.key?(:'hidden')
|
|
@@ -123,8 +123,8 @@ module PulpContainerClient
|
|
|
123
123
|
self.name = attributes[:'name']
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
self.
|
|
126
|
+
if attributes.key?(:'repository')
|
|
127
|
+
self.repository = attributes[:'repository']
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
if attributes.key?(:'remote')
|
|
@@ -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
|
-
|
|
235
|
+
content_guard == o.content_guard &&
|
|
236
236
|
pulp_labels == o.pulp_labels &&
|
|
237
|
-
|
|
237
|
+
base_path == o.base_path &&
|
|
238
238
|
hidden == o.hidden &&
|
|
239
239
|
name == o.name &&
|
|
240
|
-
|
|
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
|
+
[content_guard, pulp_labels, base_path, hidden, name, repository, 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,21 +15,21 @@ 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
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
+
attr_accessor :content_guard
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
22
|
+
attr_accessor :pulp_last_updated
|
|
23
23
|
|
|
24
24
|
attr_accessor :pulp_labels
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
attr_accessor :repository
|
|
26
|
+
attr_accessor :pulp_href
|
|
28
27
|
|
|
29
|
-
#
|
|
30
|
-
attr_accessor :
|
|
28
|
+
# The registry path exposed by this pull-through distribution.
|
|
29
|
+
attr_accessor :base_path
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
# Timestamp of creation.
|
|
32
|
+
attr_accessor :pulp_created
|
|
33
33
|
|
|
34
34
|
# Whether this distribution should be shown in the content app.
|
|
35
35
|
attr_accessor :hidden
|
|
@@ -37,8 +37,8 @@ module PulpContainerClient
|
|
|
37
37
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
38
38
|
attr_accessor :name
|
|
39
39
|
|
|
40
|
-
#
|
|
41
|
-
attr_accessor :
|
|
40
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
41
|
+
attr_accessor :repository
|
|
42
42
|
|
|
43
43
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
44
44
|
attr_accessor :remote
|
|
@@ -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
|
-
:'
|
|
62
|
-
:'base_path' => :'base_path',
|
|
63
|
-
:'pulp_labels' => :'pulp_labels',
|
|
64
|
-
:'repository' => :'repository',
|
|
61
|
+
:'content_guard' => :'content_guard',
|
|
65
62
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
63
|
+
:'pulp_labels' => :'pulp_labels',
|
|
66
64
|
:'pulp_href' => :'pulp_href',
|
|
65
|
+
:'base_path' => :'base_path',
|
|
66
|
+
:'pulp_created' => :'pulp_created',
|
|
67
67
|
:'hidden' => :'hidden',
|
|
68
68
|
:'name' => :'name',
|
|
69
|
-
:'
|
|
69
|
+
:'repository' => :'repository',
|
|
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
|
-
:'
|
|
82
|
-
:'base_path' => :'String',
|
|
83
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
84
|
-
:'repository' => :'String',
|
|
81
|
+
:'content_guard' => :'String',
|
|
85
82
|
:'pulp_last_updated' => :'DateTime',
|
|
83
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
86
84
|
:'pulp_href' => :'String',
|
|
85
|
+
:'base_path' => :'String',
|
|
86
|
+
:'pulp_created' => :'DateTime',
|
|
87
87
|
:'hidden' => :'Boolean',
|
|
88
88
|
:'name' => :'String',
|
|
89
|
-
:'
|
|
89
|
+
:'repository' => :'String',
|
|
90
90
|
:'remote' => :'String',
|
|
91
91
|
:'distributions' => :'Array<String>',
|
|
92
92
|
:'namespace' => :'String',
|
|
@@ -118,12 +118,12 @@ module PulpContainerClient
|
|
|
118
118
|
h[k.to_sym] = v
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
self.
|
|
121
|
+
if attributes.key?(:'content_guard')
|
|
122
|
+
self.content_guard = attributes[:'content_guard']
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
self.
|
|
125
|
+
if attributes.key?(:'pulp_last_updated')
|
|
126
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
if attributes.key?(:'pulp_labels')
|
|
@@ -132,16 +132,16 @@ module PulpContainerClient
|
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
if attributes.key?(:'
|
|
136
|
-
self.
|
|
135
|
+
if attributes.key?(:'pulp_href')
|
|
136
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
if attributes.key?(:'
|
|
140
|
-
self.
|
|
139
|
+
if attributes.key?(:'base_path')
|
|
140
|
+
self.base_path = attributes[:'base_path']
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
if attributes.key?(:'
|
|
144
|
-
self.
|
|
143
|
+
if attributes.key?(:'pulp_created')
|
|
144
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
145
145
|
end
|
|
146
146
|
|
|
147
147
|
if attributes.key?(:'hidden')
|
|
@@ -154,8 +154,8 @@ module PulpContainerClient
|
|
|
154
154
|
self.name = attributes[:'name']
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
if attributes.key?(:'
|
|
158
|
-
self.
|
|
157
|
+
if attributes.key?(:'repository')
|
|
158
|
+
self.repository = attributes[:'repository']
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
if attributes.key?(:'remote')
|
|
@@ -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
|
-
|
|
218
|
-
base_path == o.base_path &&
|
|
219
|
-
pulp_labels == o.pulp_labels &&
|
|
220
|
-
repository == o.repository &&
|
|
217
|
+
content_guard == o.content_guard &&
|
|
221
218
|
pulp_last_updated == o.pulp_last_updated &&
|
|
219
|
+
pulp_labels == o.pulp_labels &&
|
|
222
220
|
pulp_href == o.pulp_href &&
|
|
221
|
+
base_path == o.base_path &&
|
|
222
|
+
pulp_created == o.pulp_created &&
|
|
223
223
|
hidden == o.hidden &&
|
|
224
224
|
name == o.name &&
|
|
225
|
-
|
|
225
|
+
repository == o.repository &&
|
|
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
|
+
[content_guard, pulp_last_updated, pulp_labels, pulp_href, base_path, pulp_created, hidden, name, repository, remote, distributions, namespace, private, description].hash
|
|
243
243
|
end
|
|
244
244
|
|
|
245
245
|
# Builds the object from hash
|
|
@@ -15,48 +15,48 @@ 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 unique name for this repository.
|
|
22
|
-
attr_accessor :name
|
|
18
|
+
attr_accessor :pulp_labels
|
|
23
19
|
|
|
24
20
|
# A reference to an associated signing service.
|
|
25
21
|
attr_accessor :manifest_signing_service
|
|
26
22
|
|
|
23
|
+
# A unique name for this repository.
|
|
24
|
+
attr_accessor :name
|
|
25
|
+
|
|
27
26
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
27
|
attr_accessor :retain_repo_versions
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
# An optional description.
|
|
30
|
+
attr_accessor :description
|
|
31
31
|
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
|
-
:'
|
|
36
|
-
:'name' => :'name',
|
|
35
|
+
:'pulp_labels' => :'pulp_labels',
|
|
37
36
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
37
|
+
:'name' => :'name',
|
|
38
38
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
|
-
:'
|
|
39
|
+
:'description' => :'description'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
-
:'
|
|
47
|
-
:'name' => :'String',
|
|
46
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
48
47
|
:'manifest_signing_service' => :'String',
|
|
48
|
+
:'name' => :'String',
|
|
49
49
|
:'retain_repo_versions' => :'Integer',
|
|
50
|
-
:'
|
|
50
|
+
:'description' => :'String'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# List of attributes with nullable: true
|
|
55
55
|
def self.openapi_nullable
|
|
56
56
|
Set.new([
|
|
57
|
-
:'description',
|
|
58
57
|
:'manifest_signing_service',
|
|
59
58
|
:'retain_repo_versions',
|
|
59
|
+
:'description'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,26 +75,26 @@ module PulpContainerClient
|
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
if attributes.key?(:'name')
|
|
83
|
-
self.name = attributes[:'name']
|
|
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?(:'manifest_signing_service')
|
|
87
85
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
88
86
|
end
|
|
89
87
|
|
|
88
|
+
if attributes.key?(:'name')
|
|
89
|
+
self.name = attributes[:'name']
|
|
90
|
+
end
|
|
91
|
+
|
|
90
92
|
if attributes.key?(:'retain_repo_versions')
|
|
91
93
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
92
94
|
end
|
|
93
95
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
|
|
96
|
-
self.pulp_labels = value
|
|
97
|
-
end
|
|
96
|
+
if attributes.key?(:'description')
|
|
97
|
+
self.description = attributes[:'description']
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -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
|
|
@@ -118,29 +114,23 @@ module PulpContainerClient
|
|
|
118
114
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
119
115
|
end
|
|
120
116
|
|
|
117
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
118
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
119
|
+
end
|
|
120
|
+
|
|
121
121
|
invalid_properties
|
|
122
122
|
end
|
|
123
123
|
|
|
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
|
|
130
129
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
130
|
+
return false if !@description.nil? && @description.to_s.length < 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)
|
|
@@ -165,16 +155,26 @@ module PulpContainerClient
|
|
|
165
155
|
@retain_repo_versions = retain_repo_versions
|
|
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
|
# 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
|
-
|
|
174
|
-
name == o.name &&
|
|
173
|
+
pulp_labels == o.pulp_labels &&
|
|
175
174
|
manifest_signing_service == o.manifest_signing_service &&
|
|
175
|
+
name == o.name &&
|
|
176
176
|
retain_repo_versions == o.retain_repo_versions &&
|
|
177
|
-
|
|
177
|
+
description == o.description
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
# @see the `==` method
|
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
|
186
186
|
# Calculates hash code according to all attributes.
|
|
187
187
|
# @return [Integer] Hash code
|
|
188
188
|
def hash
|
|
189
|
-
[
|
|
189
|
+
[pulp_labels, manifest_signing_service, name, retain_repo_versions, description].hash
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# Builds the object from hash
|