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