pulp_container_client 2.20.14 → 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 +3 -3
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +54 -54
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +55 -55
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +54 -54
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +55 -55
- data/lib/pulp_container_client/models/container_container_push_repository.rb +30 -30
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +48 -48
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +30 -30
- 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 +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- 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 +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +2 -2
|
@@ -15,31 +15,31 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistributionResponse
|
|
18
|
-
# 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.
|
|
19
|
-
attr_accessor :pulp_last_updated
|
|
20
|
-
|
|
21
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
22
|
-
attr_accessor :name
|
|
23
|
-
|
|
24
|
-
# Whether this distribution should be shown in the content app.
|
|
25
|
-
attr_accessor :hidden
|
|
26
|
-
|
|
27
18
|
attr_accessor :pulp_labels
|
|
28
19
|
|
|
20
|
+
attr_accessor :pulp_href
|
|
21
|
+
|
|
29
22
|
# Timestamp of creation.
|
|
30
23
|
attr_accessor :pulp_created
|
|
31
24
|
|
|
32
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
33
|
-
attr_accessor :base_path
|
|
34
|
-
|
|
35
|
-
attr_accessor :pulp_href
|
|
36
|
-
|
|
37
25
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
38
26
|
attr_accessor :content_guard
|
|
39
27
|
|
|
28
|
+
# Whether this distribution should be shown in the content app.
|
|
29
|
+
attr_accessor :hidden
|
|
30
|
+
|
|
40
31
|
# The latest RepositoryVersion for this Repository will be served.
|
|
41
32
|
attr_accessor :repository
|
|
42
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
|
+
|
|
43
43
|
# RepositoryVersion to be served
|
|
44
44
|
attr_accessor :repository_version
|
|
45
45
|
|
|
@@ -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
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
65
|
-
:'name' => :'name',
|
|
66
|
-
:'hidden' => :'hidden',
|
|
67
64
|
:'pulp_labels' => :'pulp_labels',
|
|
68
|
-
:'pulp_created' => :'pulp_created',
|
|
69
|
-
:'base_path' => :'base_path',
|
|
70
65
|
:'pulp_href' => :'pulp_href',
|
|
66
|
+
:'pulp_created' => :'pulp_created',
|
|
71
67
|
:'content_guard' => :'content_guard',
|
|
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
|
-
:'pulp_last_updated' => :'DateTime',
|
|
86
|
-
:'name' => :'String',
|
|
87
|
-
:'hidden' => :'Boolean',
|
|
88
85
|
:'pulp_labels' => :'Hash<String, String>',
|
|
89
|
-
:'pulp_created' => :'DateTime',
|
|
90
|
-
:'base_path' => :'String',
|
|
91
86
|
:'pulp_href' => :'String',
|
|
87
|
+
:'pulp_created' => :'DateTime',
|
|
92
88
|
:'content_guard' => :'String',
|
|
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,12 +124,22 @@ module PulpContainerClient
|
|
|
124
124
|
h[k.to_sym] = v
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
|
|
127
|
+
if attributes.key?(:'pulp_labels')
|
|
128
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
129
|
+
self.pulp_labels = value
|
|
130
|
+
end
|
|
129
131
|
end
|
|
130
132
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
133
|
+
if attributes.key?(:'pulp_href')
|
|
134
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'pulp_created')
|
|
138
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'content_guard')
|
|
142
|
+
self.content_guard = attributes[:'content_guard']
|
|
133
143
|
end
|
|
134
144
|
|
|
135
145
|
if attributes.key?(:'hidden')
|
|
@@ -138,30 +148,20 @@ module PulpContainerClient
|
|
|
138
148
|
self.hidden = false
|
|
139
149
|
end
|
|
140
150
|
|
|
141
|
-
if attributes.key?(:'
|
|
142
|
-
|
|
143
|
-
self.pulp_labels = value
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
if attributes.key?(:'pulp_created')
|
|
148
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
151
|
+
if attributes.key?(:'repository')
|
|
152
|
+
self.repository = attributes[:'repository']
|
|
149
153
|
end
|
|
150
154
|
|
|
151
155
|
if attributes.key?(:'base_path')
|
|
152
156
|
self.base_path = attributes[:'base_path']
|
|
153
157
|
end
|
|
154
158
|
|
|
155
|
-
if attributes.key?(:'
|
|
156
|
-
self.
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
if attributes.key?(:'content_guard')
|
|
160
|
-
self.content_guard = attributes[:'content_guard']
|
|
159
|
+
if attributes.key?(:'pulp_last_updated')
|
|
160
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
-
if attributes.key?(:'
|
|
164
|
-
self.
|
|
163
|
+
if attributes.key?(:'name')
|
|
164
|
+
self.name = attributes[:'name']
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
if attributes.key?(:'repository_version')
|
|
@@ -193,22 +193,22 @@ module PulpContainerClient
|
|
|
193
193
|
# @return Array for valid properties with the reasons
|
|
194
194
|
def list_invalid_properties
|
|
195
195
|
invalid_properties = Array.new
|
|
196
|
-
if @name.nil?
|
|
197
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
198
|
-
end
|
|
199
|
-
|
|
200
196
|
if @base_path.nil?
|
|
201
197
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
202
198
|
end
|
|
203
199
|
|
|
200
|
+
if @name.nil?
|
|
201
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
202
|
+
end
|
|
203
|
+
|
|
204
204
|
invalid_properties
|
|
205
205
|
end
|
|
206
206
|
|
|
207
207
|
# Check to see if the all the properties in the model are valid
|
|
208
208
|
# @return true if the model is valid
|
|
209
209
|
def valid?
|
|
210
|
-
return false if @name.nil?
|
|
211
210
|
return false if @base_path.nil?
|
|
211
|
+
return false if @name.nil?
|
|
212
212
|
true
|
|
213
213
|
end
|
|
214
214
|
|
|
@@ -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
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
221
|
-
name == o.name &&
|
|
222
|
-
hidden == o.hidden &&
|
|
223
220
|
pulp_labels == o.pulp_labels &&
|
|
224
|
-
pulp_created == o.pulp_created &&
|
|
225
|
-
base_path == o.base_path &&
|
|
226
221
|
pulp_href == o.pulp_href &&
|
|
222
|
+
pulp_created == o.pulp_created &&
|
|
227
223
|
content_guard == o.content_guard &&
|
|
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,22 +15,22 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class ContainerContainerPullThroughDistribution
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
attr_accessor :pulp_labels
|
|
19
|
+
|
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
21
|
+
attr_accessor :content_guard
|
|
20
22
|
|
|
21
23
|
# Whether this distribution should be shown in the content app.
|
|
22
24
|
attr_accessor :hidden
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
27
|
+
attr_accessor :repository
|
|
25
28
|
|
|
26
29
|
# The registry path exposed by this pull-through distribution.
|
|
27
30
|
attr_accessor :base_path
|
|
28
31
|
|
|
29
|
-
#
|
|
30
|
-
attr_accessor :
|
|
31
|
-
|
|
32
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
33
|
-
attr_accessor :repository
|
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
33
|
+
attr_accessor :name
|
|
34
34
|
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
36
|
attr_accessor :remote
|
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
48
|
def self.attribute_map
|
|
49
49
|
{
|
|
50
|
-
:'name' => :'name',
|
|
51
|
-
:'hidden' => :'hidden',
|
|
52
50
|
:'pulp_labels' => :'pulp_labels',
|
|
53
|
-
:'base_path' => :'base_path',
|
|
54
51
|
:'content_guard' => :'content_guard',
|
|
52
|
+
:'hidden' => :'hidden',
|
|
55
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
|
-
:'name' => :'String',
|
|
67
|
-
:'hidden' => :'Boolean',
|
|
68
66
|
:'pulp_labels' => :'Hash<String, String>',
|
|
69
|
-
:'base_path' => :'String',
|
|
70
67
|
:'content_guard' => :'String',
|
|
68
|
+
:'hidden' => :'Boolean',
|
|
71
69
|
:'repository' => :'String',
|
|
70
|
+
:'base_path' => :'String',
|
|
71
|
+
:'name' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,8 +99,14 @@ module PulpContainerClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'
|
|
103
|
-
|
|
102
|
+
if attributes.key?(:'pulp_labels')
|
|
103
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
104
|
+
self.pulp_labels = value
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'content_guard')
|
|
109
|
+
self.content_guard = attributes[:'content_guard']
|
|
104
110
|
end
|
|
105
111
|
|
|
106
112
|
if attributes.key?(:'hidden')
|
|
@@ -109,22 +115,16 @@ module PulpContainerClient
|
|
|
109
115
|
self.hidden = false
|
|
110
116
|
end
|
|
111
117
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
|
|
114
|
-
self.pulp_labels = value
|
|
115
|
-
end
|
|
118
|
+
if attributes.key?(:'repository')
|
|
119
|
+
self.repository = attributes[:'repository']
|
|
116
120
|
end
|
|
117
121
|
|
|
118
122
|
if attributes.key?(:'base_path')
|
|
119
123
|
self.base_path = attributes[:'base_path']
|
|
120
124
|
end
|
|
121
125
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if attributes.key?(:'repository')
|
|
127
|
-
self.repository = attributes[:'repository']
|
|
126
|
+
if attributes.key?(:'name')
|
|
127
|
+
self.name = attributes[:'name']
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
if attributes.key?(:'remote')
|
|
@@ -150,14 +150,6 @@ module PulpContainerClient
|
|
|
150
150
|
# @return Array for valid properties with the reasons
|
|
151
151
|
def list_invalid_properties
|
|
152
152
|
invalid_properties = Array.new
|
|
153
|
-
if @name.nil?
|
|
154
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
if @name.to_s.length < 1
|
|
158
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
159
|
-
end
|
|
160
|
-
|
|
161
153
|
if @base_path.nil?
|
|
162
154
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
163
155
|
end
|
|
@@ -166,6 +158,14 @@ module PulpContainerClient
|
|
|
166
158
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
167
159
|
end
|
|
168
160
|
|
|
161
|
+
if @name.nil?
|
|
162
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if @name.to_s.length < 1
|
|
166
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
167
|
+
end
|
|
168
|
+
|
|
169
169
|
if @remote.nil?
|
|
170
170
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
|
171
171
|
end
|
|
@@ -180,29 +180,15 @@ module PulpContainerClient
|
|
|
180
180
|
# Check to see if the all the properties in the model are valid
|
|
181
181
|
# @return true if the model is valid
|
|
182
182
|
def valid?
|
|
183
|
-
return false if @name.nil?
|
|
184
|
-
return false if @name.to_s.length < 1
|
|
185
183
|
return false if @base_path.nil?
|
|
186
184
|
return false if @base_path.to_s.length < 1
|
|
185
|
+
return false if @name.nil?
|
|
186
|
+
return false if @name.to_s.length < 1
|
|
187
187
|
return false if @remote.nil?
|
|
188
188
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
189
189
|
true
|
|
190
190
|
end
|
|
191
191
|
|
|
192
|
-
# Custom attribute writer method with validation
|
|
193
|
-
# @param [Object] name Value to be assigned
|
|
194
|
-
def name=(name)
|
|
195
|
-
if name.nil?
|
|
196
|
-
fail ArgumentError, 'name cannot be nil'
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
if name.to_s.length < 1
|
|
200
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
@name = name
|
|
204
|
-
end
|
|
205
|
-
|
|
206
192
|
# Custom attribute writer method with validation
|
|
207
193
|
# @param [Object] base_path Value to be assigned
|
|
208
194
|
def base_path=(base_path)
|
|
@@ -217,6 +203,20 @@ module PulpContainerClient
|
|
|
217
203
|
@base_path = base_path
|
|
218
204
|
end
|
|
219
205
|
|
|
206
|
+
# Custom attribute writer method with validation
|
|
207
|
+
# @param [Object] name Value to be assigned
|
|
208
|
+
def name=(name)
|
|
209
|
+
if name.nil?
|
|
210
|
+
fail ArgumentError, 'name cannot be nil'
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if name.to_s.length < 1
|
|
214
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@name = name
|
|
218
|
+
end
|
|
219
|
+
|
|
220
220
|
# Custom attribute writer method with validation
|
|
221
221
|
# @param [Object] description Value to be assigned
|
|
222
222
|
def description=(description)
|
|
@@ -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
|
-
name == o.name &&
|
|
236
|
-
hidden == o.hidden &&
|
|
237
235
|
pulp_labels == o.pulp_labels &&
|
|
238
|
-
base_path == o.base_path &&
|
|
239
236
|
content_guard == o.content_guard &&
|
|
237
|
+
hidden == o.hidden &&
|
|
240
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,31 +15,31 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class ContainerContainerPullThroughDistributionResponse
|
|
18
|
-
# 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.
|
|
19
|
-
attr_accessor :pulp_last_updated
|
|
20
|
-
|
|
21
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
22
|
-
attr_accessor :name
|
|
23
|
-
|
|
24
|
-
# Whether this distribution should be shown in the content app.
|
|
25
|
-
attr_accessor :hidden
|
|
26
|
-
|
|
27
18
|
attr_accessor :pulp_labels
|
|
28
19
|
|
|
20
|
+
attr_accessor :pulp_href
|
|
21
|
+
|
|
29
22
|
# Timestamp of creation.
|
|
30
23
|
attr_accessor :pulp_created
|
|
31
24
|
|
|
32
|
-
# The registry path exposed by this pull-through distribution.
|
|
33
|
-
attr_accessor :base_path
|
|
34
|
-
|
|
35
|
-
attr_accessor :pulp_href
|
|
36
|
-
|
|
37
25
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
38
26
|
attr_accessor :content_guard
|
|
39
27
|
|
|
28
|
+
# Whether this distribution should be shown in the content app.
|
|
29
|
+
attr_accessor :hidden
|
|
30
|
+
|
|
40
31
|
# The latest RepositoryVersion for this Repository will be served.
|
|
41
32
|
attr_accessor :repository
|
|
42
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
|
+
|
|
43
43
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
44
44
|
attr_accessor :remote
|
|
45
45
|
|
|
@@ -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
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
62
|
-
:'name' => :'name',
|
|
63
|
-
:'hidden' => :'hidden',
|
|
64
61
|
:'pulp_labels' => :'pulp_labels',
|
|
65
|
-
:'pulp_created' => :'pulp_created',
|
|
66
|
-
:'base_path' => :'base_path',
|
|
67
62
|
:'pulp_href' => :'pulp_href',
|
|
63
|
+
:'pulp_created' => :'pulp_created',
|
|
68
64
|
:'content_guard' => :'content_guard',
|
|
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
|
-
:'pulp_last_updated' => :'DateTime',
|
|
82
|
-
:'name' => :'String',
|
|
83
|
-
:'hidden' => :'Boolean',
|
|
84
81
|
:'pulp_labels' => :'Hash<String, String>',
|
|
85
|
-
:'pulp_created' => :'DateTime',
|
|
86
|
-
:'base_path' => :'String',
|
|
87
82
|
:'pulp_href' => :'String',
|
|
83
|
+
:'pulp_created' => :'DateTime',
|
|
88
84
|
:'content_guard' => :'String',
|
|
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,12 +118,22 @@ module PulpContainerClient
|
|
|
118
118
|
h[k.to_sym] = v
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
|
|
121
|
+
if attributes.key?(:'pulp_labels')
|
|
122
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
123
|
+
self.pulp_labels = value
|
|
124
|
+
end
|
|
123
125
|
end
|
|
124
126
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
self.
|
|
127
|
+
if attributes.key?(:'pulp_href')
|
|
128
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'pulp_created')
|
|
132
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'content_guard')
|
|
136
|
+
self.content_guard = attributes[:'content_guard']
|
|
127
137
|
end
|
|
128
138
|
|
|
129
139
|
if attributes.key?(:'hidden')
|
|
@@ -132,30 +142,20 @@ module PulpContainerClient
|
|
|
132
142
|
self.hidden = false
|
|
133
143
|
end
|
|
134
144
|
|
|
135
|
-
if attributes.key?(:'
|
|
136
|
-
|
|
137
|
-
self.pulp_labels = value
|
|
138
|
-
end
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
if attributes.key?(:'pulp_created')
|
|
142
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
145
|
+
if attributes.key?(:'repository')
|
|
146
|
+
self.repository = attributes[:'repository']
|
|
143
147
|
end
|
|
144
148
|
|
|
145
149
|
if attributes.key?(:'base_path')
|
|
146
150
|
self.base_path = attributes[:'base_path']
|
|
147
151
|
end
|
|
148
152
|
|
|
149
|
-
if attributes.key?(:'
|
|
150
|
-
self.
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
if attributes.key?(:'content_guard')
|
|
154
|
-
self.content_guard = attributes[:'content_guard']
|
|
153
|
+
if attributes.key?(:'pulp_last_updated')
|
|
154
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
if attributes.key?(:'
|
|
158
|
-
self.
|
|
157
|
+
if attributes.key?(:'name')
|
|
158
|
+
self.name = attributes[:'name']
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
if attributes.key?(:'remote')
|
|
@@ -185,14 +185,14 @@ module PulpContainerClient
|
|
|
185
185
|
# @return Array for valid properties with the reasons
|
|
186
186
|
def list_invalid_properties
|
|
187
187
|
invalid_properties = Array.new
|
|
188
|
-
if @name.nil?
|
|
189
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
190
|
-
end
|
|
191
|
-
|
|
192
188
|
if @base_path.nil?
|
|
193
189
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
194
190
|
end
|
|
195
191
|
|
|
192
|
+
if @name.nil?
|
|
193
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
194
|
+
end
|
|
195
|
+
|
|
196
196
|
if @remote.nil?
|
|
197
197
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
|
198
198
|
end
|
|
@@ -203,8 +203,8 @@ module PulpContainerClient
|
|
|
203
203
|
# Check to see if the all the properties in the model are valid
|
|
204
204
|
# @return true if the model is valid
|
|
205
205
|
def valid?
|
|
206
|
-
return false if @name.nil?
|
|
207
206
|
return false if @base_path.nil?
|
|
207
|
+
return false if @name.nil?
|
|
208
208
|
return false if @remote.nil?
|
|
209
209
|
true
|
|
210
210
|
end
|
|
@@ -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
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
218
|
-
name == o.name &&
|
|
219
|
-
hidden == o.hidden &&
|
|
220
217
|
pulp_labels == o.pulp_labels &&
|
|
221
|
-
pulp_created == o.pulp_created &&
|
|
222
|
-
base_path == o.base_path &&
|
|
223
218
|
pulp_href == o.pulp_href &&
|
|
219
|
+
pulp_created == o.pulp_created &&
|
|
224
220
|
content_guard == o.content_guard &&
|
|
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
|