pulp_container_client 2.27.5 → 2.27.6
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 +18 -18
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- 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 +7 -7
- data/lib/pulp_container_client/models/container_container_distribution.rb +66 -66
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +89 -89
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +66 -66
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +89 -89
- data/lib/pulp_container_client/models/container_container_push_repository.rb +47 -47
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +86 -86
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +58 -58
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +58 -58
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +47 -47
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +13 -13
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +13 -13
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +12 -12
- 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,25 +16,25 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
|
-
# RepositoryVersion to be served
|
|
25
|
-
attr_accessor :repository_version
|
|
19
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
20
|
+
attr_accessor :name
|
|
26
21
|
|
|
27
22
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
28
23
|
attr_accessor :content_guard
|
|
29
24
|
|
|
25
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
26
|
+
attr_accessor :repository
|
|
27
|
+
|
|
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
|
|
30
|
+
|
|
30
31
|
# Whether this distribution should be shown in the content app.
|
|
31
32
|
attr_accessor :hidden
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
attr_accessor :name
|
|
34
|
+
attr_accessor :pulp_labels
|
|
35
35
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
36
|
+
# RepositoryVersion to be served
|
|
37
|
+
attr_accessor :repository_version
|
|
38
38
|
|
|
39
39
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
|
40
40
|
attr_accessor :private
|
|
@@ -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
|
+
:'name' => :'name',
|
|
49
|
+
:'content_guard' => :'content_guard',
|
|
50
|
+
:'repository' => :'repository',
|
|
48
51
|
:'base_path' => :'base_path',
|
|
52
|
+
:'hidden' => :'hidden',
|
|
49
53
|
:'pulp_labels' => :'pulp_labels',
|
|
50
54
|
:'repository_version' => :'repository_version',
|
|
51
|
-
:'content_guard' => :'content_guard',
|
|
52
|
-
:'hidden' => :'hidden',
|
|
53
|
-
:'name' => :'name',
|
|
54
|
-
:'repository' => :'repository',
|
|
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
|
+
:'name' => :'String',
|
|
69
|
+
:'content_guard' => :'String',
|
|
70
|
+
:'repository' => :'String',
|
|
68
71
|
:'base_path' => :'String',
|
|
72
|
+
:'hidden' => :'Boolean',
|
|
69
73
|
:'pulp_labels' => :'Hash<String, String>',
|
|
70
74
|
:'repository_version' => :'String',
|
|
71
|
-
:'content_guard' => :'String',
|
|
72
|
-
:'hidden' => :'Boolean',
|
|
73
|
-
:'name' => :'String',
|
|
74
|
-
:'repository' => :'String',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
77
77
|
}
|
|
@@ -80,8 +80,8 @@ module PulpContainerClient
|
|
|
80
80
|
# List of attributes with nullable: true
|
|
81
81
|
def self.openapi_nullable
|
|
82
82
|
Set.new([
|
|
83
|
-
:'repository_version',
|
|
84
83
|
:'repository',
|
|
84
|
+
:'repository_version',
|
|
85
85
|
:'description'
|
|
86
86
|
])
|
|
87
87
|
end
|
|
@@ -101,22 +101,20 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
104
|
+
if attributes.key?(:'name')
|
|
105
|
+
self.name = attributes[:'name']
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
|
|
110
|
-
self.pulp_labels = value
|
|
111
|
-
end
|
|
108
|
+
if attributes.key?(:'content_guard')
|
|
109
|
+
self.content_guard = attributes[:'content_guard']
|
|
112
110
|
end
|
|
113
111
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
112
|
+
if attributes.key?(:'repository')
|
|
113
|
+
self.repository = attributes[:'repository']
|
|
116
114
|
end
|
|
117
115
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
self.
|
|
116
|
+
if attributes.key?(:'base_path')
|
|
117
|
+
self.base_path = attributes[:'base_path']
|
|
120
118
|
end
|
|
121
119
|
|
|
122
120
|
if attributes.key?(:'hidden')
|
|
@@ -125,12 +123,14 @@ module PulpContainerClient
|
|
|
125
123
|
self.hidden = false
|
|
126
124
|
end
|
|
127
125
|
|
|
128
|
-
if attributes.key?(:'
|
|
129
|
-
|
|
126
|
+
if attributes.key?(:'pulp_labels')
|
|
127
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
128
|
+
self.pulp_labels = value
|
|
129
|
+
end
|
|
130
130
|
end
|
|
131
131
|
|
|
132
|
-
if attributes.key?(:'
|
|
133
|
-
self.
|
|
132
|
+
if attributes.key?(:'repository_version')
|
|
133
|
+
self.repository_version = attributes[:'repository_version']
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
if attributes.key?(:'private')
|
|
@@ -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
|
+
name == o.name &&
|
|
219
|
+
content_guard == o.content_guard &&
|
|
220
|
+
repository == o.repository &&
|
|
218
221
|
base_path == o.base_path &&
|
|
222
|
+
hidden == o.hidden &&
|
|
219
223
|
pulp_labels == o.pulp_labels &&
|
|
220
224
|
repository_version == o.repository_version &&
|
|
221
|
-
content_guard == o.content_guard &&
|
|
222
|
-
hidden == o.hidden &&
|
|
223
|
-
name == o.name &&
|
|
224
|
-
repository == o.repository &&
|
|
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
|
+
[name, content_guard, repository, base_path, hidden, pulp_labels, repository_version, 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,25 +16,25 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class PatchedcontainerContainerPullThroughDistribution
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
|
-
# RepositoryVersion to be served
|
|
25
|
-
attr_accessor :repository_version
|
|
19
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
20
|
+
attr_accessor :name
|
|
26
21
|
|
|
27
22
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
28
23
|
attr_accessor :content_guard
|
|
29
24
|
|
|
25
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
26
|
+
attr_accessor :repository
|
|
27
|
+
|
|
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
|
|
30
|
+
|
|
30
31
|
# Whether this distribution should be shown in the content app.
|
|
31
32
|
attr_accessor :hidden
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
attr_accessor :name
|
|
34
|
+
attr_accessor :pulp_labels
|
|
35
35
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
36
|
+
# RepositoryVersion to be served
|
|
37
|
+
attr_accessor :repository_version
|
|
38
38
|
|
|
39
39
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
40
40
|
attr_accessor :remote
|
|
@@ -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
|
+
:'name' => :'name',
|
|
55
|
+
:'content_guard' => :'content_guard',
|
|
56
|
+
:'repository' => :'repository',
|
|
54
57
|
:'base_path' => :'base_path',
|
|
58
|
+
:'hidden' => :'hidden',
|
|
55
59
|
:'pulp_labels' => :'pulp_labels',
|
|
56
60
|
:'repository_version' => :'repository_version',
|
|
57
|
-
:'content_guard' => :'content_guard',
|
|
58
|
-
:'hidden' => :'hidden',
|
|
59
|
-
:'name' => :'name',
|
|
60
|
-
:'repository' => :'repository',
|
|
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
|
+
:'name' => :'String',
|
|
77
|
+
:'content_guard' => :'String',
|
|
78
|
+
:'repository' => :'String',
|
|
76
79
|
:'base_path' => :'String',
|
|
80
|
+
:'hidden' => :'Boolean',
|
|
77
81
|
:'pulp_labels' => :'Hash<String, String>',
|
|
78
82
|
:'repository_version' => :'String',
|
|
79
|
-
:'content_guard' => :'String',
|
|
80
|
-
:'hidden' => :'Boolean',
|
|
81
|
-
:'name' => :'String',
|
|
82
|
-
:'repository' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -90,8 +90,8 @@ module PulpContainerClient
|
|
|
90
90
|
# List of attributes with nullable: true
|
|
91
91
|
def self.openapi_nullable
|
|
92
92
|
Set.new([
|
|
93
|
-
:'repository_version',
|
|
94
93
|
:'repository',
|
|
94
|
+
:'repository_version',
|
|
95
95
|
:'description'
|
|
96
96
|
])
|
|
97
97
|
end
|
|
@@ -111,22 +111,20 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
114
|
+
if attributes.key?(:'name')
|
|
115
|
+
self.name = attributes[:'name']
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
|
|
120
|
-
self.pulp_labels = value
|
|
121
|
-
end
|
|
118
|
+
if attributes.key?(:'content_guard')
|
|
119
|
+
self.content_guard = attributes[:'content_guard']
|
|
122
120
|
end
|
|
123
121
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
122
|
+
if attributes.key?(:'repository')
|
|
123
|
+
self.repository = attributes[:'repository']
|
|
126
124
|
end
|
|
127
125
|
|
|
128
|
-
if attributes.key?(:'
|
|
129
|
-
self.
|
|
126
|
+
if attributes.key?(:'base_path')
|
|
127
|
+
self.base_path = attributes[:'base_path']
|
|
130
128
|
end
|
|
131
129
|
|
|
132
130
|
if attributes.key?(:'hidden')
|
|
@@ -135,12 +133,14 @@ module PulpContainerClient
|
|
|
135
133
|
self.hidden = false
|
|
136
134
|
end
|
|
137
135
|
|
|
138
|
-
if attributes.key?(:'
|
|
139
|
-
|
|
136
|
+
if attributes.key?(:'pulp_labels')
|
|
137
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
138
|
+
self.pulp_labels = value
|
|
139
|
+
end
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
-
if attributes.key?(:'
|
|
143
|
-
self.
|
|
142
|
+
if attributes.key?(:'repository_version')
|
|
143
|
+
self.repository_version = attributes[:'repository_version']
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
if attributes.key?(:'remote')
|
|
@@ -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
|
+
name == o.name &&
|
|
239
|
+
content_guard == o.content_guard &&
|
|
240
|
+
repository == o.repository &&
|
|
238
241
|
base_path == o.base_path &&
|
|
242
|
+
hidden == o.hidden &&
|
|
239
243
|
pulp_labels == o.pulp_labels &&
|
|
240
244
|
repository_version == o.repository_version &&
|
|
241
|
-
content_guard == o.content_guard &&
|
|
242
|
-
hidden == o.hidden &&
|
|
243
|
-
name == o.name &&
|
|
244
|
-
repository == o.repository &&
|
|
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
|
+
[name, content_guard, repository, base_path, hidden, pulp_labels, repository_version, remote, distributions, private, description].hash
|
|
261
261
|
end
|
|
262
262
|
|
|
263
263
|
# Builds the object from hash
|
|
@@ -16,16 +16,14 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class PatchedcontainerContainerPushRepository
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
19
|
+
# A reference to an associated signing service.
|
|
20
|
+
attr_accessor :manifest_signing_service
|
|
23
21
|
|
|
24
22
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
25
23
|
attr_accessor :retain_repo_versions
|
|
26
24
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
25
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
26
|
+
attr_accessor :retain_checkpoints
|
|
29
27
|
|
|
30
28
|
# A unique name for this repository.
|
|
31
29
|
attr_accessor :name
|
|
@@ -33,15 +31,17 @@ module PulpContainerClient
|
|
|
33
31
|
# An optional description.
|
|
34
32
|
attr_accessor :description
|
|
35
33
|
|
|
34
|
+
attr_accessor :pulp_labels
|
|
35
|
+
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
40
|
-
:'pulp_labels' => :'pulp_labels',
|
|
41
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
42
39
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
40
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
41
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
43
42
|
:'name' => :'name',
|
|
44
|
-
:'description' => :'description'
|
|
43
|
+
:'description' => :'description',
|
|
44
|
+
:'pulp_labels' => :'pulp_labels'
|
|
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
|
-
:'retain_checkpoints' => :'Integer',
|
|
57
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
58
|
-
:'retain_repo_versions' => :'Integer',
|
|
59
56
|
:'manifest_signing_service' => :'String',
|
|
57
|
+
:'retain_repo_versions' => :'Integer',
|
|
58
|
+
:'retain_checkpoints' => :'Integer',
|
|
60
59
|
:'name' => :'String',
|
|
61
|
-
:'description' => :'String'
|
|
60
|
+
:'description' => :'String',
|
|
61
|
+
:'pulp_labels' => :'Hash<String, 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
|
-
:'retain_checkpoints',
|
|
69
|
-
:'retain_repo_versions',
|
|
70
68
|
:'manifest_signing_service',
|
|
71
|
-
:'
|
|
69
|
+
:'retain_repo_versions',
|
|
70
|
+
:'retain_checkpoints',
|
|
71
|
+
:'description',
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,22 +87,16 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
if attributes.key?(:'pulp_labels')
|
|
95
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
96
|
-
self.pulp_labels = value
|
|
97
|
-
end
|
|
90
|
+
if attributes.key?(:'manifest_signing_service')
|
|
91
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
98
92
|
end
|
|
99
93
|
|
|
100
94
|
if attributes.key?(:'retain_repo_versions')
|
|
101
95
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
102
96
|
end
|
|
103
97
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
98
|
+
if attributes.key?(:'retain_checkpoints')
|
|
99
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
106
100
|
end
|
|
107
101
|
|
|
108
102
|
if attributes.key?(:'name')
|
|
@@ -112,6 +106,12 @@ module PulpContainerClient
|
|
|
112
106
|
if attributes.key?(:'description')
|
|
113
107
|
self.description = attributes[:'description']
|
|
114
108
|
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'pulp_labels')
|
|
111
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
112
|
+
self.pulp_labels = value
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -119,14 +119,14 @@ 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 !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
123
|
-
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
124
|
-
end
|
|
125
|
-
|
|
126
122
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
127
123
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
128
124
|
end
|
|
129
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.')
|
|
128
|
+
end
|
|
129
|
+
|
|
130
130
|
if !@name.nil? && @name.to_s.length < 1
|
|
131
131
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
132
132
|
end
|
|
@@ -142,23 +142,13 @@ 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 !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
146
145
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
146
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
147
147
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
148
148
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
149
149
|
true
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
# Custom attribute writer method with validation
|
|
153
|
-
# @param [Object] retain_checkpoints Value to be assigned
|
|
154
|
-
def retain_checkpoints=(retain_checkpoints)
|
|
155
|
-
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
156
|
-
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
@retain_checkpoints = retain_checkpoints
|
|
160
|
-
end
|
|
161
|
-
|
|
162
152
|
# Custom attribute writer method with validation
|
|
163
153
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
164
154
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -169,6 +159,16 @@ module PulpContainerClient
|
|
|
169
159
|
@retain_repo_versions = retain_repo_versions
|
|
170
160
|
end
|
|
171
161
|
|
|
162
|
+
# Custom attribute writer method with validation
|
|
163
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
164
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
165
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
166
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
@retain_checkpoints = retain_checkpoints
|
|
170
|
+
end
|
|
171
|
+
|
|
172
172
|
# Custom attribute writer method with validation
|
|
173
173
|
# @param [Object] name Value to be assigned
|
|
174
174
|
def name=(name)
|
|
@@ -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
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
202
|
-
pulp_labels == o.pulp_labels &&
|
|
203
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
204
201
|
manifest_signing_service == o.manifest_signing_service &&
|
|
202
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
203
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
205
204
|
name == o.name &&
|
|
206
|
-
description == o.description
|
|
205
|
+
description == o.description &&
|
|
206
|
+
pulp_labels == o.pulp_labels
|
|
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
|
+
[manifest_signing_service, retain_repo_versions, retain_checkpoints, name, description, pulp_labels].hash
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
# Builds the object from hash
|