pulp_container_client 2.29.2 → 2.30.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 +6 -6
- data/docs/ContainerContainerDistributionResponse.md +14 -14
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/DistributionsPullThroughApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +58 -58
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +71 -71
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +58 -58
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +71 -71
- data/lib/pulp_container_client/models/container_container_push_repository.rb +54 -54
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +51 -51
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +51 -51
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +51 -51
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +50 -50
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- metadata +1 -1
|
@@ -16,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class ContainerContainerDistribution
|
|
19
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
|
+
attr_accessor :content_guard
|
|
21
|
+
|
|
22
|
+
# RepositoryVersion to be served
|
|
23
|
+
attr_accessor :repository_version
|
|
24
|
+
|
|
19
25
|
# The latest RepositoryVersion for this Repository will be served.
|
|
20
26
|
attr_accessor :repository
|
|
21
27
|
|
|
22
28
|
# Whether this distribution should be shown in the content app.
|
|
23
29
|
attr_accessor :hidden
|
|
24
30
|
|
|
31
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
32
|
+
attr_accessor :base_path
|
|
33
|
+
|
|
25
34
|
attr_accessor :pulp_labels
|
|
26
35
|
|
|
27
36
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
37
|
attr_accessor :name
|
|
29
38
|
|
|
30
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
31
|
-
attr_accessor :content_guard
|
|
32
|
-
|
|
33
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
34
|
-
attr_accessor :base_path
|
|
35
|
-
|
|
36
|
-
# RepositoryVersion to be served
|
|
37
|
-
attr_accessor :repository_version
|
|
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
|
+
:'content_guard' => :'content_guard',
|
|
49
|
+
:'repository_version' => :'repository_version',
|
|
48
50
|
:'repository' => :'repository',
|
|
49
51
|
:'hidden' => :'hidden',
|
|
52
|
+
:'base_path' => :'base_path',
|
|
50
53
|
:'pulp_labels' => :'pulp_labels',
|
|
51
54
|
:'name' => :'name',
|
|
52
|
-
:'content_guard' => :'content_guard',
|
|
53
|
-
:'base_path' => :'base_path',
|
|
54
|
-
:'repository_version' => :'repository_version',
|
|
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
|
+
:'content_guard' => :'String',
|
|
69
|
+
:'repository_version' => :'String',
|
|
68
70
|
:'repository' => :'String',
|
|
69
71
|
:'hidden' => :'Boolean',
|
|
72
|
+
:'base_path' => :'String',
|
|
70
73
|
:'pulp_labels' => :'Hash<String, String>',
|
|
71
74
|
:'name' => :'String',
|
|
72
|
-
:'content_guard' => :'String',
|
|
73
|
-
:'base_path' => :'String',
|
|
74
|
-
:'repository_version' => :'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',
|
|
84
83
|
:'repository_version',
|
|
84
|
+
:'repository',
|
|
85
85
|
:'description'
|
|
86
86
|
])
|
|
87
87
|
end
|
|
@@ -101,6 +101,14 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
if attributes.key?(:'content_guard')
|
|
105
|
+
self.content_guard = attributes[:'content_guard']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'repository_version')
|
|
109
|
+
self.repository_version = attributes[:'repository_version']
|
|
110
|
+
end
|
|
111
|
+
|
|
104
112
|
if attributes.key?(:'repository')
|
|
105
113
|
self.repository = attributes[:'repository']
|
|
106
114
|
end
|
|
@@ -111,6 +119,12 @@ module PulpContainerClient
|
|
|
111
119
|
self.hidden = false
|
|
112
120
|
end
|
|
113
121
|
|
|
122
|
+
if attributes.key?(:'base_path')
|
|
123
|
+
self.base_path = attributes[:'base_path']
|
|
124
|
+
else
|
|
125
|
+
self.base_path = nil
|
|
126
|
+
end
|
|
127
|
+
|
|
114
128
|
if attributes.key?(:'pulp_labels')
|
|
115
129
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
116
130
|
self.pulp_labels = value
|
|
@@ -123,20 +137,6 @@ module PulpContainerClient
|
|
|
123
137
|
self.name = nil
|
|
124
138
|
end
|
|
125
139
|
|
|
126
|
-
if attributes.key?(:'content_guard')
|
|
127
|
-
self.content_guard = attributes[:'content_guard']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
if attributes.key?(:'base_path')
|
|
131
|
-
self.base_path = attributes[:'base_path']
|
|
132
|
-
else
|
|
133
|
-
self.base_path = nil
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
if attributes.key?(:'repository_version')
|
|
137
|
-
self.repository_version = attributes[:'repository_version']
|
|
138
|
-
end
|
|
139
|
-
|
|
140
140
|
if attributes.key?(:'private')
|
|
141
141
|
self.private = attributes[:'private']
|
|
142
142
|
end
|
|
@@ -151,14 +151,6 @@ module PulpContainerClient
|
|
|
151
151
|
def list_invalid_properties
|
|
152
152
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
153
153
|
invalid_properties = Array.new
|
|
154
|
-
if @name.nil?
|
|
155
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
if @name.to_s.length < 1
|
|
159
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
160
|
-
end
|
|
161
|
-
|
|
162
154
|
if @base_path.nil?
|
|
163
155
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
164
156
|
end
|
|
@@ -167,6 +159,14 @@ module PulpContainerClient
|
|
|
167
159
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
168
160
|
end
|
|
169
161
|
|
|
162
|
+
if @name.nil?
|
|
163
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if @name.to_s.length < 1
|
|
167
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
168
|
+
end
|
|
169
|
+
|
|
170
170
|
if !@description.nil? && @description.to_s.length < 1
|
|
171
171
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
172
172
|
end
|
|
@@ -178,28 +178,14 @@ module PulpContainerClient
|
|
|
178
178
|
# @return true if the model is valid
|
|
179
179
|
def valid?
|
|
180
180
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
181
|
-
return false if @name.nil?
|
|
182
|
-
return false if @name.to_s.length < 1
|
|
183
181
|
return false if @base_path.nil?
|
|
184
182
|
return false if @base_path.to_s.length < 1
|
|
183
|
+
return false if @name.nil?
|
|
184
|
+
return false if @name.to_s.length < 1
|
|
185
185
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
186
186
|
true
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
# Custom attribute writer method with validation
|
|
190
|
-
# @param [Object] name Value to be assigned
|
|
191
|
-
def name=(name)
|
|
192
|
-
if name.nil?
|
|
193
|
-
fail ArgumentError, 'name cannot be nil'
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
if name.to_s.length < 1
|
|
197
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
@name = name
|
|
201
|
-
end
|
|
202
|
-
|
|
203
189
|
# Custom attribute writer method with validation
|
|
204
190
|
# @param [Object] base_path Value to be assigned
|
|
205
191
|
def base_path=(base_path)
|
|
@@ -214,6 +200,20 @@ module PulpContainerClient
|
|
|
214
200
|
@base_path = base_path
|
|
215
201
|
end
|
|
216
202
|
|
|
203
|
+
# Custom attribute writer method with validation
|
|
204
|
+
# @param [Object] name Value to be assigned
|
|
205
|
+
def name=(name)
|
|
206
|
+
if name.nil?
|
|
207
|
+
fail ArgumentError, 'name cannot be nil'
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if name.to_s.length < 1
|
|
211
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
@name = name
|
|
215
|
+
end
|
|
216
|
+
|
|
217
217
|
# Custom attribute writer method with validation
|
|
218
218
|
# @param [Object] description Value to be assigned
|
|
219
219
|
def description=(description)
|
|
@@ -229,13 +229,13 @@ module PulpContainerClient
|
|
|
229
229
|
def ==(o)
|
|
230
230
|
return true if self.equal?(o)
|
|
231
231
|
self.class == o.class &&
|
|
232
|
+
content_guard == o.content_guard &&
|
|
233
|
+
repository_version == o.repository_version &&
|
|
232
234
|
repository == o.repository &&
|
|
233
235
|
hidden == o.hidden &&
|
|
236
|
+
base_path == o.base_path &&
|
|
234
237
|
pulp_labels == o.pulp_labels &&
|
|
235
238
|
name == o.name &&
|
|
236
|
-
content_guard == o.content_guard &&
|
|
237
|
-
base_path == o.base_path &&
|
|
238
|
-
repository_version == o.repository_version &&
|
|
239
239
|
private == o.private &&
|
|
240
240
|
description == o.description
|
|
241
241
|
end
|
|
@@ -249,7 +249,7 @@ module PulpContainerClient
|
|
|
249
249
|
# Calculates hash code according to all attributes.
|
|
250
250
|
# @return [Integer] Hash code
|
|
251
251
|
def hash
|
|
252
|
-
[
|
|
252
|
+
[content_guard, repository_version, repository, hidden, base_path, pulp_labels, name, private, description].hash
|
|
253
253
|
end
|
|
254
254
|
|
|
255
255
|
# Builds the object from hash
|
|
@@ -16,39 +16,39 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class ContainerContainerDistributionResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
|
+
attr_accessor :content_guard
|
|
21
|
+
|
|
22
|
+
# RepositoryVersion to be served
|
|
23
|
+
attr_accessor :repository_version
|
|
21
24
|
|
|
22
25
|
# The latest RepositoryVersion for this Repository will be served.
|
|
23
26
|
attr_accessor :repository
|
|
24
27
|
|
|
25
|
-
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
26
|
-
attr_accessor :no_content_change_since
|
|
27
|
-
|
|
28
28
|
# Whether this distribution should be shown in the content app.
|
|
29
29
|
attr_accessor :hidden
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
34
|
-
attr_accessor :name
|
|
31
|
+
# 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.
|
|
32
|
+
attr_accessor :pulp_last_updated
|
|
35
33
|
|
|
36
34
|
attr_accessor :pulp_href
|
|
37
35
|
|
|
38
|
-
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
39
|
-
attr_accessor :content_guard_prn
|
|
40
|
-
|
|
41
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
42
|
-
attr_accessor :content_guard
|
|
43
|
-
|
|
44
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\")
|
|
45
37
|
attr_accessor :base_path
|
|
46
38
|
|
|
39
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
40
|
+
attr_accessor :no_content_change_since
|
|
41
|
+
|
|
42
|
+
attr_accessor :pulp_labels
|
|
43
|
+
|
|
44
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
45
|
+
attr_accessor :content_guard_prn
|
|
46
|
+
|
|
47
47
|
# Timestamp of creation.
|
|
48
48
|
attr_accessor :pulp_created
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
attr_accessor :
|
|
50
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
51
|
+
attr_accessor :name
|
|
52
52
|
|
|
53
53
|
# The Pulp Resource Name (PRN).
|
|
54
54
|
attr_accessor :prn
|
|
@@ -71,18 +71,18 @@ module PulpContainerClient
|
|
|
71
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
72
|
def self.attribute_map
|
|
73
73
|
{
|
|
74
|
-
:'
|
|
74
|
+
:'content_guard' => :'content_guard',
|
|
75
|
+
:'repository_version' => :'repository_version',
|
|
75
76
|
:'repository' => :'repository',
|
|
76
|
-
:'no_content_change_since' => :'no_content_change_since',
|
|
77
77
|
:'hidden' => :'hidden',
|
|
78
|
-
:'
|
|
79
|
-
:'name' => :'name',
|
|
78
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
80
79
|
:'pulp_href' => :'pulp_href',
|
|
81
|
-
:'content_guard_prn' => :'content_guard_prn',
|
|
82
|
-
:'content_guard' => :'content_guard',
|
|
83
80
|
:'base_path' => :'base_path',
|
|
81
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
82
|
+
:'pulp_labels' => :'pulp_labels',
|
|
83
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
84
84
|
:'pulp_created' => :'pulp_created',
|
|
85
|
-
:'
|
|
85
|
+
:'name' => :'name',
|
|
86
86
|
:'prn' => :'prn',
|
|
87
87
|
:'registry_path' => :'registry_path',
|
|
88
88
|
:'remote' => :'remote',
|
|
@@ -100,18 +100,18 @@ module PulpContainerClient
|
|
|
100
100
|
# Attribute type mapping.
|
|
101
101
|
def self.openapi_types
|
|
102
102
|
{
|
|
103
|
-
:'
|
|
103
|
+
:'content_guard' => :'String',
|
|
104
|
+
:'repository_version' => :'String',
|
|
104
105
|
:'repository' => :'String',
|
|
105
|
-
:'no_content_change_since' => :'String',
|
|
106
106
|
:'hidden' => :'Boolean',
|
|
107
|
-
:'
|
|
108
|
-
:'name' => :'String',
|
|
107
|
+
:'pulp_last_updated' => :'Time',
|
|
109
108
|
:'pulp_href' => :'String',
|
|
110
|
-
:'content_guard_prn' => :'String',
|
|
111
|
-
:'content_guard' => :'String',
|
|
112
109
|
:'base_path' => :'String',
|
|
110
|
+
:'no_content_change_since' => :'String',
|
|
111
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
112
|
+
:'content_guard_prn' => :'String',
|
|
113
113
|
:'pulp_created' => :'Time',
|
|
114
|
-
:'
|
|
114
|
+
:'name' => :'String',
|
|
115
115
|
:'prn' => :'String',
|
|
116
116
|
:'registry_path' => :'String',
|
|
117
117
|
:'remote' => :'String',
|
|
@@ -124,8 +124,8 @@ module PulpContainerClient
|
|
|
124
124
|
# List of attributes with nullable: true
|
|
125
125
|
def self.openapi_nullable
|
|
126
126
|
Set.new([
|
|
127
|
-
:'repository',
|
|
128
127
|
:'repository_version',
|
|
128
|
+
:'repository',
|
|
129
129
|
:'description'
|
|
130
130
|
])
|
|
131
131
|
end
|
|
@@ -145,16 +145,16 @@ module PulpContainerClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
if attributes.key?(:'
|
|
149
|
-
self.
|
|
148
|
+
if attributes.key?(:'content_guard')
|
|
149
|
+
self.content_guard = attributes[:'content_guard']
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
152
|
+
if attributes.key?(:'repository_version')
|
|
153
|
+
self.repository_version = attributes[:'repository_version']
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
-
if attributes.key?(:'
|
|
157
|
-
self.
|
|
156
|
+
if attributes.key?(:'repository')
|
|
157
|
+
self.repository = attributes[:'repository']
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
if attributes.key?(:'hidden')
|
|
@@ -163,42 +163,42 @@ module PulpContainerClient
|
|
|
163
163
|
self.hidden = false
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
-
if attributes.key?(:'
|
|
167
|
-
|
|
168
|
-
self.pulp_labels = value
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
if attributes.key?(:'name')
|
|
173
|
-
self.name = attributes[:'name']
|
|
174
|
-
else
|
|
175
|
-
self.name = nil
|
|
166
|
+
if attributes.key?(:'pulp_last_updated')
|
|
167
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
176
168
|
end
|
|
177
169
|
|
|
178
170
|
if attributes.key?(:'pulp_href')
|
|
179
171
|
self.pulp_href = attributes[:'pulp_href']
|
|
180
172
|
end
|
|
181
173
|
|
|
182
|
-
if attributes.key?(:'content_guard_prn')
|
|
183
|
-
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
if attributes.key?(:'content_guard')
|
|
187
|
-
self.content_guard = attributes[:'content_guard']
|
|
188
|
-
end
|
|
189
|
-
|
|
190
174
|
if attributes.key?(:'base_path')
|
|
191
175
|
self.base_path = attributes[:'base_path']
|
|
192
176
|
else
|
|
193
177
|
self.base_path = nil
|
|
194
178
|
end
|
|
195
179
|
|
|
180
|
+
if attributes.key?(:'no_content_change_since')
|
|
181
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'pulp_labels')
|
|
185
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
186
|
+
self.pulp_labels = value
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'content_guard_prn')
|
|
191
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
192
|
+
end
|
|
193
|
+
|
|
196
194
|
if attributes.key?(:'pulp_created')
|
|
197
195
|
self.pulp_created = attributes[:'pulp_created']
|
|
198
196
|
end
|
|
199
197
|
|
|
200
|
-
if attributes.key?(:'
|
|
201
|
-
self.
|
|
198
|
+
if attributes.key?(:'name')
|
|
199
|
+
self.name = attributes[:'name']
|
|
200
|
+
else
|
|
201
|
+
self.name = nil
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
if attributes.key?(:'prn')
|
|
@@ -231,14 +231,14 @@ module PulpContainerClient
|
|
|
231
231
|
def list_invalid_properties
|
|
232
232
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
233
233
|
invalid_properties = Array.new
|
|
234
|
-
if @name.nil?
|
|
235
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
236
|
-
end
|
|
237
|
-
|
|
238
234
|
if @base_path.nil?
|
|
239
235
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
240
236
|
end
|
|
241
237
|
|
|
238
|
+
if @name.nil?
|
|
239
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
240
|
+
end
|
|
241
|
+
|
|
242
242
|
invalid_properties
|
|
243
243
|
end
|
|
244
244
|
|
|
@@ -246,8 +246,8 @@ module PulpContainerClient
|
|
|
246
246
|
# @return true if the model is valid
|
|
247
247
|
def valid?
|
|
248
248
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
249
|
-
return false if @name.nil?
|
|
250
249
|
return false if @base_path.nil?
|
|
250
|
+
return false if @name.nil?
|
|
251
251
|
true
|
|
252
252
|
end
|
|
253
253
|
|
|
@@ -256,18 +256,18 @@ module PulpContainerClient
|
|
|
256
256
|
def ==(o)
|
|
257
257
|
return true if self.equal?(o)
|
|
258
258
|
self.class == o.class &&
|
|
259
|
-
|
|
259
|
+
content_guard == o.content_guard &&
|
|
260
|
+
repository_version == o.repository_version &&
|
|
260
261
|
repository == o.repository &&
|
|
261
|
-
no_content_change_since == o.no_content_change_since &&
|
|
262
262
|
hidden == o.hidden &&
|
|
263
|
-
|
|
264
|
-
name == o.name &&
|
|
263
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
265
264
|
pulp_href == o.pulp_href &&
|
|
266
|
-
content_guard_prn == o.content_guard_prn &&
|
|
267
|
-
content_guard == o.content_guard &&
|
|
268
265
|
base_path == o.base_path &&
|
|
266
|
+
no_content_change_since == o.no_content_change_since &&
|
|
267
|
+
pulp_labels == o.pulp_labels &&
|
|
268
|
+
content_guard_prn == o.content_guard_prn &&
|
|
269
269
|
pulp_created == o.pulp_created &&
|
|
270
|
-
|
|
270
|
+
name == o.name &&
|
|
271
271
|
prn == o.prn &&
|
|
272
272
|
registry_path == o.registry_path &&
|
|
273
273
|
remote == o.remote &&
|
|
@@ -285,7 +285,7 @@ module PulpContainerClient
|
|
|
285
285
|
# Calculates hash code according to all attributes.
|
|
286
286
|
# @return [Integer] Hash code
|
|
287
287
|
def hash
|
|
288
|
-
[
|
|
288
|
+
[content_guard, repository_version, repository, hidden, pulp_last_updated, pulp_href, base_path, no_content_change_since, pulp_labels, content_guard_prn, pulp_created, name, prn, registry_path, remote, namespace, private, description].hash
|
|
289
289
|
end
|
|
290
290
|
|
|
291
291
|
# Builds the object from hash
|