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