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